Use ProcLeave to continue processing at the line immediately after the following related ProcEndBlock position (related by the nesting count). ProcLeave is often used after a ProcIf command. Its execution is then dependent upon the results of the ProcIf command.
ProcLeave may also be entered as Leave.
ProcLeave has no operands.
Return Codes
OK Successful.
Examples
The following example shows the ProcLeave command, in conjunction with the ProcBlock, ProcEndBlock, and ProcLoop commands, used within a procedure to process a set of statements 10 times:
------------------------------------------------------------------------
...
SET CT,0
BLOCK
ADD CT,1
IF CT,GT,10
LEAVE
.... Statements
LOOP
ENDBLOCK
...
------------------------------------------------------------------------