This is an old revision of the document!
fScan Reference Manual, Chapter 1 (Topics): stringsubst
Character string variables are identified by preceding the variable name with a '$' or '_' character. String variables are replaced by their text during command execution. String variables can also be used to perform simple arithmetic functions. String variables are most useful when writing scripted macros or creating menu commands, but they can be used anytime.
There are 3 types of string variables:
Set USER variables using the SET command as:
For example:
Variable names are identified by an initial '$' or '_' character. Either prefix can be used for any variable; the variable is replaced by its string value in both cases. For single-valued variables '$' and '_' behave identically. But if the variable contains multiple words (separated by spaces) then a single '$' variable argument in a command will be converted to multiple single-word arguments, whereas a '_' multi-word variable argument remains a single argument.
To perform simple arithmetic simply follow a variable name with '+', '-', '*', or '/' and a number value (no spaces). For example
See Also: