EXIT IF expression[, levels] EXIT levels IF expression
The instruction forces the program to leave a loop, such as FOR…NEXT
,
REPEAT…UNTIL
, WHILE…WEND
and DO…LOOP
under a specific
set of conditions. The EXIT
will only be performed IF
the
result is found to true.
An optional number can be given to specify the number of loops to be jumped out, otherwise only the current loop will be aborted.
EXIT IF lifes = 0, 2 EXIT 2 IF lifes
See also the following example files:
Ex If
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!