<var>
Last updated
Last updated
This element declares a variable. It can occur in executable content or as a child of <form>
or <vxml>
.
Name | Data type | Description |
---|---|---|
None
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>, <form>, <help>, <if>, <noinput>, <nomatch>, <vxml>
name
The name of the variable that will hold the result.
expr
The initial value of the variable (optional). If there is no expr attribute, the variable retains its current value, if any.
If not given an initial value, variables start out with the ECMAScript value undefined.