Using Declared Variables <var>

The VAR (variable element) enables the template author to define logical storage for variables that are defined and used in the template. When using declared variables, be aware of the following:

  • A declared variable is valid only for the template in which it is declared.
  • Unless a new value is specifically assigned to the variable, the parser uses the declared value of the variable as VAR1 throughout the template.
  • Names can be a maximum of 50 characters.
  • Values can be a maximum of 10,000 characters.
  • All declared variables are case-sensitive.
  • All variables must be enclosed in curly braces ( { . . . } ) in the script.
  • The application does not process the VAR value but replaces it in its place holder. Consider the following example:

    <var name = "var1">nn</var>

    where:

    var1 is the name of the variable

    nn is the value if the variable