EXIT
The EXIT statement must appear inside a WHILE, REPEAT, or LOOP statement. It causes the flow of execution to branch to the statement immediately following the innermost loop in which it appears.
FOR x := 1 TO 5 DO i := 1; WHILE i < 3 DO i := i + 1; IF CheckIt(i, x) THEN EXIT (* Transfers control to the IO.Put below *) END END; (* WHILE *) IO.Put("x = " & Fmt.Int(x) & "\n") END; (* FOR *)