BREAK

From ICE Enterprises
Jump to navigation Jump to search

exits nearest enclosing WHILE, DO, or FOREACH loop

<LEVELS> - Number of levels from which to break

The BREAK command is used inside a loop to provide immediate exit from the loop.
Since this is a run-time command, it can be executed from suspend mode as well.

By default, only the nearest enclosing loop is exited.  If it is necessary to 
jump out of two or more loops at once, set the <LEVELS> or use the GOTO command.

Examples:
  See TEST_BREAK macro in nxm.sys.test


SEE ALSO:  GOTO, DO, FOREACH, WHILE, CONTINUE