|They seem to want to skip loop code if x =2 or 5 so what’s wrong with if x<>2 and x<>5? |
It's not "wrong"
They just used to have special operator - C-like CONTINUE.
Me got taught about it, too
so if I need it I just use GOTO
for i = 1 to 100
... some code
if needsContinue then [continue]
... some more code
could actually lead to "wrong" indeed:
stacking several conditions
* either got one humongous super-condition - impossible to read and debug
* or brings extra layers of indented code, which just pain to watch.
(EDIT2 actually, thats "code complete" slowly reappearing in my head. Likely that was said about nested IF's , like may be here, but I think it still apply. )
That is, you you really need that much conditions ;)