Flow-control structures: Difference between revisions

→‎raising conditions: mention Call On. references under Call and Signal to be added.
(→‎signal: added indentation, list of some ways to HALT a REXX program. -- ~~~~)
(→‎raising conditions: mention Call On. references under Call and Signal to be added.)
Line 1,799:
Moral: don't do that.
</pre>
A note on REXX on VM and zOS as well as ooRexx:
<br>Three conditions allow to specify CALL On condition: ERROR, FAILURE, and HALT.
From the corresponding condition handlers one can RETURN to the instruction
following the instruction/command where the condition was encountered.
<br>A short example:
<lang>Say 'Interrupt this program after a short while'
Call on any name xxx
Do i=1 To 10000000
j=i**2+1
End
xxx: Say i j
Return</lang>
 
===return===
2,300

edits