BREAK
The BREAK statement provides an early exit from FOR ... NEXT , WHILE ... WEND . or REPEAT ... UNTIL loops. The BREAK must actually fall within the body of the loop and cannot be inside a subroutine called from within the loop. The pairing of BREAK with the FOR, WHILE or REPEAT statements is checked at resolve time.
Example:
WHILE new_loop<10 DO
IF (++new_loop = 5)
BREAK
END IF
'Update()
WEND
See also: