BREAK
Syntax | Examples | Version History | See Also
The BREAK statement provides a convenient way to immediately exit from a loop (FOR, WHILE, REPEAT), CASE, or SWITCH statement without resorting to GOTO statements.
Note
BREAK is an IDL statement. For information on using statements, see Program Control (Application Programming).
Syntax
BREAK
Examples
This example exits the enclosing WHILE loop when the value of i hits 5.
Version History
See Also
BEGIN...END, CASE, CONTINUE, FOR, GOTO, IF...THEN...ELSE, REPEAT...UNTIL, SWITCH, WHILE...DO, Program Control (Application Programming)