Loop exit
exit-instruction = exit [level]
level = 2 .. 9
An exit instruction must form part of the sequence of instructions nested in a for, while or until loop. After an exit instruction, the next instruction to be followed is the instruction coming after the loop instruction in which the exit instruction is nested. In other words, the exit instruction terminates the loop instruction in which it is nested.
If the exit instruction is nested in a loop which itself is nested in a loop, the outer loop can be terminated by using exit 2. Further nestings can be handled by using a greater level number. It is probably not good style to nest a loop within more than two outer loops.
Herman Venter
This is Slim documentation as snarfed on 27 May 1999 by dB.