Skip to main content
Version: 5.x

Interruption (BREAK)

The interrupt operator creates an action that exits the most nested loop (normal or recursive) within which this action is located. Control is transferred to the first action following the loop. If the created action is not inside a loop, its behavior becomes similar to the action created by the exit operator.

Language

The interrupt operator syntax is described by the BREAK operator.

Examples

testBreak ()  {
FOR iterate(INTEGER i, 1, 100) DO {
IF i == 50 THEN BREAK; // will only come up to 50
}
}