$DEFAULT
- Last UpdatedOct 06, 2023
- 1 minute read
Syntax
$DEFAULT ( Variable ) ( CHAR ! NUM ) ( Expression )
This defines a new variable and assigns a value to it if it has not already been defined. It is primarily used for defaulting parameters to macros. A type code must be supplied with the variable and this should be one of the following:
CHAR for character variables
NUM for numeric variable, no distinction is made between Integer and Real
for example, $DEFAULT width NUM 22.5