Variables

Variables are symbols that have a specified value. They are typically used in macros where a variable can be defined and given a value when that value is needed in more than one place within the macro.

To define a variable, use the command

ANSIG> VARIABLE variable-name variable-value
The variable name must be a valid identifier. The variable value can be any string.

To use the variable value in a command, one uses the '$' character:

ANSIG> variable var1 value1
ANSIG> echo var1
var1
ANSIG> echo $var1
value1
The complete list of currently defined variables is shown by the command SHOW VARIABLES. To display the value of a single variable, use the ECHO command.

To delete a defined variable, give the command VARIABLE with the variable name, but without any variable value.


Per Kraulis 10 Apr 1996.