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