Variable values can be displayed anywhere in the body of an LXP region through the
<putvar> tag. Here is the syntax for
<putvar>, where variablename is the name of the
variable whose value is to be displayed:
<putvar name="
variablename
" />
Variable values may also be set and reset via the <setvar> and
<setvars> tags. Here is the syntax for these tags:
<setvar
variablename
="
variablevalue
" />
<setvars
variable1
="
value1
"
variable2
="
value2
"
[...]
/>
Like variables, the values referenced by objects can also be displayed and set by the
<putvar> and <setvar> tags.
Note: Remember that the use of either a dot (period) or square brackets in setting a name with
<setvar> implies that you are setting a variable value to an
object
, rather than a plain variable. Such a value can therefore only be substituted later with the
at sign, rather than the dollar sign.