Next: CONTINUE Statement, Previous: Jumps, Up: Jumps [Contents][Index]
The break
statement jumps to the end of the current enclosing
loop statement and terminates that loop. For example, the loop in the
statement
LUX>FOR i = 1, 5 { mor>T,i mor>IF i GT 3 THEN BREAK mor>T,i*(i + 1) } 1 2 2 6 3 12 4 LUX>
is cut short when i
exceeds the value 3.