Exit mid-loop
Posted: Fri Apr 01, 2011 12:15 pm
What is the 'correct' way to exit a REPEAT...UNTIL loop?
Not appropriate to check at the beginning of the loop as Error hasn't yet
occurred.
Can't continue with the loop to UNTIL as I have an Error.
Code: Select all
REPEAT
...
...
IF Error THEN exit; (* Leave the room NOW!! *)
....
....
UNTIL ...
occurred.
Can't continue with the loop to UNTIL as I have an Error.