break
The break keyword exits a loop.
Purpose
A side statement for exiting a loop.
Syntax
break;
Description
The break statement is used to exit a while loop or a for loop. This statement forces the rule engine to go to the end of the containing statement block, and to continue to the next instruction.
Example
while (a.hasNext()) {
if (a.next().exitLoop())
break;
}