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.9. else

Element typeelse
AttributesNone.
Parentsif
ChildrenNone.
DescriptionDeclares the beginning of the "else code" within an if element. All elements within the if element after the else element are executed only if the if element's cond attribute and its contained elseif elements' cond attributes all evaluate to false.

DTD

<!ELEMENT else EMPTY >

Language model

Attributes

None.

Children

None.

Examples

Example 3-11. Using the if-else logic
 <?xml version="1.0" encoding="iso-8859-1"?> <vxml version="1.0"> <form id="pick"> <field name="select"> <grammar>one|two|three</grammar> <prompt>Pick a number from one to three.</prompt> <filled> <if cond="select=='one'"> ...

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