Programmer Guide/Command Reference/BREAK: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
The <code>BREAK</code> immediately stops loop processing. The control flow will continue with the first command after the <code>[[Programmer Guide/Command Reference/END|END]]</code> statement of the respective loop. This command can only be used inside a loop (see [[Programmer Guide/Command Reference/DO|<code>DO</code>]], <code>[[Programmer_Guide/Command_Reference/WHILE|WHILE]]</code>, <code>[[Programmer_Guide/Command_Reference/FOREVER|FOREVER]]</code>, and <code>[[Programmer_Guide/Command_Reference/FOR|FOR]]</code>).
The <code>BREAK</code> immediately stops loop processing. The control flow will continue with the first command after the [[../END|END]] statement of the respective loop. This command can only be used inside a loop.
 
==Usage==
=== See also ===
:<code>BREAK</code>
<code>[[Programmer_Guide/Command_Reference/CONTINUE|CONTINUE]]</code> command
==Result==
The BREAK command do not generate a return value and do also not change the variable <code>RC</code>.
==See also==
[[Programmer_Guide/Introduction#Control_Commands|control commands]], [[../CONTINUE|CONTINUE]], [[../DO|DO]], [[../WHILE|WHILE]], [[../FOR|FOR]], [[../FOREVER|FOREVER]], [[..END]]
<!-- C.G. 14.3.2011 -->
<!-- C.G. 14.3.2011 -->
<!-- A.N. 27.4.2011 -->

Revision as of 11:29, 27 April 2011

The BREAK immediately stops loop processing. The control flow will continue with the first command after the END statement of the respective loop. This command can only be used inside a loop.

Usage

BREAK

Result

The BREAK command do not generate a return value and do also not change the variable RC.

See also

control commands, CONTINUE, DO, WHILE, FOR, FOREVER, ..END

Navigation menu

Personal tools