Exit do: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The Exit Do statement may be used to break out of a [[DO]]/[[LOOP]] structure and continue execution with the first line following the Loop statement. | The Exit Do statement may be used to break out of a [[DO]]/[[LOOP]] structure and continue execution with the first line following the Loop statement. | ||
Exit Do is useful in loops where there is no condition specified either on the Do or on the Loop statement. Exit DO is an executable statement and is an exception to Exit followed by error | Exit Do is useful in loops where there is no condition specified either on the Do or on the Loop statement. Exit DO is an executable statement and is an exception to Exit followed by error condition line ref instructions, which are not executable. | ||
===Syntax=== | |||
EXIT DO | |||
[[file:exitdo.png]] | |||
<noinclude> | <noinclude> | ||
[[Category:Statements]] | [[Category:Statements]] | ||
[[Category:Loop Statements]] | |||
</noinclude> | </noinclude> |
Latest revision as of 16:16, 24 April 2014
The Exit Do statement may be used to break out of a DO/LOOP structure and continue execution with the first line following the Loop statement.
Exit Do is useful in loops where there is no condition specified either on the Do or on the Loop statement. Exit DO is an executable statement and is an exception to Exit followed by error condition line ref instructions, which are not executable.
Syntax
EXIT DO