O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.1. assign

Element typeassign
Attributesexpr | name
Parentsblock | catch | error | filled | help | if | noinput | nomatch
ChildrenNone.
DescriptionAssigns a value to a variable. The variable must have already been declared with a var element or with ECMAScript code, or else this will cause a semantic.error to be thrown.

DTD

<!ELEMENT assign EMPTY >
<!ATTLIST assign
  name %field.name; #REQUIRED
  expr %expression; #REQUIRED >

Language model

Attributes

The two attributes of assign represent a key/value pair.

name : field.name

Indicates the name of the ECMAScript variable to be altered.

expr : expression

An ECMAScript expression whose value will be assigned ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required