Flow-control structures: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) m (→leave: typo) |
m (→leave: corrected an HTML tag. -- ~~~~) |
||
Line 1,741: | Line 1,741: | ||
===leave=== |
===leave=== |
||
The '''leave''' statement transfer control to the next REXX statement following the '''end'''   statement of the current (active) '''do''' loop in which the '''leave''' statement is located. The '''leave''' statement can also specify which '''do''' loop is to be left (terminated) if the '''do''' loop has a named variable. |
The '''leave''' statement transfer control to the next REXX statement following the '''end''' statement of the current (active) '''do''' loop in which the '''leave''' statement is located. The '''leave''' statement can also specify which '''do''' loop is to be left (terminated) if the '''do''' loop has a named variable. |
||
<lang rexx> do j=1 to 10 |
<lang rexx> do j=1 to 10 |
||
say 'j=' j |
say 'j=' j |