M mjcoon Well-Known Member Licensed User Jun 19, 2010 #1 The "Exit" command drops out of a loop, that is Go-To after the innermost containing Loop or Next command. Some languages have a handy "Break" that only terminates the current iteration, that is Go-To before the Loop or Next command. Mike.
The "Exit" command drops out of a loop, that is Go-To after the innermost containing Loop or Next command. Some languages have a handy "Break" that only terminates the current iteration, that is Go-To before the Loop or Next command. Mike.
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2010 #2 I believe that you are referring to the "continue" keyword in C languages, right?
M mjcoon Well-Known Member Licensed User Jun 20, 2010 #3 Erel said: I believe that you are referring to the "continue" keyword in C languages, right? Click to expand... Ah, you could be right. I do have a Psion OPL manual to hand and I see that there the "Break" works like your "Exit", leaving the loop, whereas OPL has a "Continue" working like my suggestion; and probably in C as you identify. I expect I was always getting them confused. However "Exit" is clearly not a continuation of any sort! Mike.
Erel said: I believe that you are referring to the "continue" keyword in C languages, right? Click to expand... Ah, you could be right. I do have a Psion OPL manual to hand and I see that there the "Break" works like your "Exit", leaving the loop, whereas OPL has a "Continue" working like my suggestion; and probably in C as you identify. I expect I was always getting them confused. However "Exit" is clearly not a continuation of any sort! Mike.