Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

27 Working with Mif2Go macros > 27.2 Using macro variables > 27.2.1 Creating and invoking macro variables > 27.2.1.1 Naming macro variables


27.2.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.

Reserved naming for predefined macro variables

Some macro variable names are predefined by Mif2Go, and cannot be used for other purposes; see §27.2.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 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.



27 Working with Mif2Go macros > 27.2 Using macro variables > 27.2.1 Creating and invoking macro variables > 27.2.1.1 Naming macro variables