Flow-control structures: Difference between revisions

m
→‎leave: corrected an HTML tag. -- ~~~~
m (→‎leave: typo)
m (→‎leave: corrected an HTML tag. -- ~~~~)
Line 1,741:
 
===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.
<lang rexx> do j=1 to 10
say 'j=' j