"Break" command for iterations

mjcoon

Well-Known Member
Licensed User
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.
 

mjcoon

Well-Known Member
Licensed User
I believe that you are referring to the "continue" keyword in C languages, right?

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.
 
Top