Shiny Language Reference
Language Reference > Basic Language
breakall
breakall;
Aborts all nested execution loops
The BREAKALL statement is only valid when used inside FOR or WHILE loops. It immediately causes execution of the code segment inside the loop to abort, and execution resumes at the first instruction after the end of all nested loops.
If loop conditions are nested, the BREAKALL statement exits all loops. Execution resumes at the end. If BREAKALL is used inside an unnested, single loop it has the same effect as using the BREAK statement.
Parameters
None
Return Value
No return value, this is a statement.
Example Code
for(int Counter = 0; Counter < 10; Counter++)
{
while(bContinueProcessing == TRUE)
{
// Immediately abort both while and for loops
breakall;
}
}
// Code execution resumes here