<assign>
<assign>
The <assign>
element assigns a value to a predefined variable.
Attributes
Name
Data type
Description
name
String
The name of the variable being assigned to.
expr
String
An ECMAscript expression to be evaluated, the results of which are assigned to the named variable.
Notes
The variable specified by the “name” attribute in the <assign>
tag should be declared in a <var>
tag first.
Example
The output of the above script would be:
Computer: The test variable is set to twelve hundred thirty-four.
Child Tags
None
Parent Tags
<block>, <catch>, <error>, <filled>, <foreach>, <help>, <if>, <noinput>, <nomatch>
Last updated