status = exists ( variable ) ;
list variable
- A valid identifier.
boolean status
- 1
The variable exists.
The STATUS variable is set to $ACKNOWLEDGE
- 0
The variable does not exist.
The STATUS variable is set to %UNDEFINED
%UNDEFINED : The variable does not exist.
%ARGUMENT : Invalid arguments. Usage: status = exists ( variable ) ;
%IDENTIFIER : 'variable' argument is not a valid identifier, literal, or reference
Hyperscript variables can be defined and undefined on-the-fly, therefore it is often necessary to test for the existance of a variable. If the scope is local, the exists() function first tests for the existance of a a local definition of the variable before testing for a global definition.