Special variables: Difference between revisions

Content deleted Content added
m →‎{{header|REXX}}: added whitespace before and after the special variable names. -- ~~~~
m →‎{{header|REXX}}: changed plural use of variables to singular to match subject. -- ~~~~
Line 1,111:
The REXX language has three special variables:
 
* '''RC'''             [the return'''r'''eturn code'''c'''ode from commands issued to the host.]
* '''RESULT'''   [the result RETURNed from a subroutine or function.]
* '''SIGL'''         [the source line number that did the transfer of control.]
 
Each of the above may be used as a regular REXX variablesvariable, they aren't reserved keywords or reserved variable names.
<br>Because REXX may define (or re-define) any of these variables during execution of the REXX program, it isn't recommended that they be used as regular REXX variables.
 
Initially, the above three special variables aren't defined *nbsp; (until the appropriate action for their use has been performed).
 
: If no commands have been issued to the host, then the &nbsp; '''RC''' &nbsp; special variable isn't defined.
<br>: If no subroutines have been invoked, then the &nbsp; '''RESULT''' &nbsp; special variable isn't defined.
<br>: If no SIGNAL or CALL (or subroutine invocation) has been used, then the &nbsp; '''SIGL''' &nbsp; special variable isn't defined.
:: (This excludes the use of &nbsp; '''SIGNAL ON xxxααα''' &nbsp; and/or &nbsp; '''SIGNAL OFF xxxααα''' &nbsp; instructions which don't actually transfer control.)
 
In each case, the variable names may be in lower/upper/mixed case.