Omni Systems, Inc. Mif2Go User's Guide, Version 55
> 28 Working with macros > 28.3 Using macro variables > 28.3.1 Creating and invoking macro variables > 28.3.1.1 Naming macro variables
A Mif2Go macro variable name looks like a Mif2Go macro name, except that a macro variable name
starts with two dollar signs instead of
one: $$
varname
.
The rest of the name must consist only of letters and digits. Do not
include punctuation or spaces in a macro variable name.
Reserved naming for predefined macro variables
Some macro variable names are predefined by Mif2Go, and cannot be used for other purposes; see
§28.3.4 Using predefined macro variables.
The name of a predefined Mif2Go macro variable starts with two dollar signs
followed by an underscore: $$_
varname
.
Avoid giving a name that starts with an underscore to any of your own macro variables;
the Mif2Go definition takes precedence. The “$$
”
says “this is a Mif2Go macro variable”; the “_” says
“the name is reserved, not one of yours”.
Note:
For backward compatibility Mif2Go recognizes a predefined variable name without the underscore (such as $$basefile
),
but only if you have not defined your own variable with the same name.
Your variable definition takes precedence if there is no underscore.