variable
Although the parser is not intended to function as a scripting language interpreter, it is sometimes useful to have limited macro-like capabilities available.
Syntax
One can use var or variable to define variables (macros).
To reference a defined variable, use dollar sign $ with the variable name. For example,
This is equivalent to the following.
| Text Only | |
|---|---|
variable must exist
The variable must exist (have been defined) when referenced. Thus the order matters in this situation. This is because the scan and replacement of variables/macros happen during the processing/parsing of the command.
More advanced scripting functionality shall be fulfilled by other tools.