The Symbol function returns information regarding a possible Rexx symbolic name. The result is one of the following:
VAR -- the name is a symbol that is currently assigned a value
LIT -- the name is either a constant, or a potential symbol that is presently unassigned
BAD -- the name is not valid for use as a symbol
result = Symbol( name ) |
Examples:
say Symbol( '7' ) -- shows: LIT say Symbol( 'X' ) -- shows: LIT, when unassigned say Symbol( 'X' ) -- shows: VAR, when assigned say Symbol( '>' ) -- shows: BAD |