The $BREAK-statement

$BREAK 

Not always it is suggestive to leave a loop with the abort criterion. The key word $BREAK, can be used for termination, apart from program execution, in the individual $CASE-notations of the $SWITCH-statement (see chaper 10.1.2), also abruptly end the execution of a loop.

For example, this is useful in case of thickly nested loops, if the execution of the innermost loop should be broken off.

Programming example

N10 $WHILE <expr1> The loop is terminated if
N20 ... expr1 "not valid” or
N30 expr2 “valid”
N40 $IF <expr2>
N50 $BREAK
N60 $ENDIF
N70 ...
N80
N90 $ENDWHILE
N100 ...