Documentation

#BREAK

Added in v2.12

BREAK

Syntax: #BREAK
Related: #CONTINUE, #EXIT

Must be used within a loop - exits the loop and continues with the next statement after the loop

BREAK Example

#LOOP 10 {#IF (%i = 5) {#BREAK};#SHOW %i};#SHOW after

Displays 1,2,3,4,after. When the loop gets to number 5, the #BREAK command exits the loop.

Add comment

Login or register to post comments