- ⌂ Flow Control
- Directives
#BREAK
Exit the current loop (
, #WHILE
, #FOR
#FOREACH
, #LIST
) scope, effectively skipping remaining iterations.
Prototype
#BREAK
Example
#ASSIGN($x, 10)
#FOR($i = 0; $i < 100; $i++)
#IF($i == $x)
#BREAK
#ENDIF
#ENDFOR