Break


Statement Break


Use Break within loops to pass control to the first statement following the innermost enclosing For or While.


Syntax Break


See Also:

For While Continue


Example Script


NUMBER i


FOR i = 0 TO 10

IF i == 3 THEN BREAK ELSE PRINT i

NEXT

PRINT "DONE"


Script Output


0

1

2

DONE