Next: , Previous: , Up: Jumps   [Contents][Index]


7.16.1 BREAK Statement

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.