Special Variables

There are three special variables that ARexx sets automatically during execution of a script:

Variable Description
RC RC is set to return code from any executed host command. If an ERROR or SYNTAX interrupt occurs, RC is set to the error code that triggered the interrupt. The NOVALUE and HALT interrupts have no effect on RC.
RESULT RESULT is set by a RETURN instruction in a subroutine that has been called. If the RETURN instruction has no expression on it, then RESULT becomes uninitialized.
SIGL SIGL contains the line number of the last instruction that caused a jump to a label.

None of these variables have an initial value. They may be altered by the user, but ARexx will continue to set them automatically when appropriate. The PROCEDURE and DROP instructions also affect these variables.

Index


fuss/amiga/arexx/manual/appendix/special_variables.txt ยท Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.