Voxeo Documentation - <else> Element

The <else> element is used as the final logic constructor in an array of conditional statements. The content nested within the <else> element is executed when all other <if> and <elseif> element cond attributes evaluate to false.

Syntax

The following code example shows the syntax for the <else> element.

<else />

Attribute Details

None.

Shadow Variables

None.

Parents

<if>

Children

None.

Code Samples

The following code sample shows use of the <else> element.

<?xml version="1.0" encoding="UTF-8"?>

<vxml version="2.1">

 

<form id="F1">

<field name="F_1">

<prompt>

Who would win in a fist fight, Oprah, Madonna, or James Brown?

</prompt>

<grammar xml:lang="en-us" root="myrule">

<rule id="myrule">

<one-of>

<item> Oprah </item>

<item> Madonna </item>

<item> James Brown </item>

</one-of>

</rule>

</grammar>

<filled>

<if cond="F_1=='Oprah'">

<prompt>

You really think Oprah could duke it out with the Godfather of soul?

</prompt>

<elseif cond="F_1=='Madonna'" />

<prompt>

Madonna would get creamed, who do you think you are kidding?

</prompt>

<else />

<prompt>

James Brown would whip up on both Oprah and Madonna.

</prompt>

</if>

</filled>

</field>

</form>

</vxml>

See Also

VoiceXML Development Guide v2.1 Overview

Element Summary

Voxeo Support

 

The <else> element is used as the final logic constructor in an array of conditional statements. For more information, see <else> Element.

 

The <else> element is used as the final logic constructor in an array of conditional statements. For more information, see <else> Element.

 

The <if> element provides a method to utilize conditional logic expressions to change the control flow within the application based on user utterances, variable values, or events. For more information, see <if> Element.

 

The <elseif> element is used to specify additional content when all other <else> or <if> elements equate to false. For more information, see <elseif> Element.

 

The <else> element is used as the final logic constructor in an array of conditional statements. For more information, see <else> Element.

 

The <if> element provides a method to utilize conditional logic expressions to change the control flow within the application based on user utterances, variable values, or events. For more information, see <if> Element.

 

The <else> element is used as the final logic constructor in an array of conditional statements. For more information, see <else> Element.

Voxeo Documentation

     Voxeo Documentation Overview
  Evolution Developer Portal Documentation
  Voxeo CXP Documentation
  Prophecy Documentation
  XML Development Languages Documentation
  VoiceXML 2.1 Development Guide
     VoiceXML Development Guide v2.1 Overview
     Platform Overview
     Creating an Application
     Voxeo File Manager
     Caching Tips and Techniques
     Cache Manager API
     Security Information
  Learning VoiceXML 2.1
  Best Practices
  Debugging Techniques
  Exceptions and Errors
  VoiceXML 2.1 Porting Guide
  VoiceXML Variables
  All Things Audio
  Outbound Dialing
  Property Guide
  GSL Grammars
  grXML Grammars
     Custom Features
     External References
  Text-To-Speech Guide
     VoIP Dialing
     Voxeo Designer User Interface
  Element Reference Guide
     Element Summary
     <assign> Element
     <audio> Element
     <block> Element
     <break> Element
     <catch> Element
     <choice> Element
     <clear> Element
     <data> Element
     <disconnect> Element
     <else> Element
     <elseif> Element
     <emphasis> Element
     <enumerate> Element
     <error> Element
     <example> Element
     <exit> Element
     <field> Element
     <filled> Element
     <foreach> Element
     <form> Element
     <goto> Element
     <grammar> Element
     <help> Element
     <if> Element
     <initial> Element
     <item> Element
     <link> Element
     <log> Element
     <mark> Element
     <media> Element
     <menu> Element
     <meta> Element
     <noinput> Element
     <nomatch> Element
     <one-of> Element
     <option> Element
     <paragraph> Element
     <param> Element
     <phoneme> Element
     <prompt> Element
     <property> Element
     <prosody> Element
     <record> Element
     <reprompt> Element
     <return> Element
     <rule> Element
     <ruleref> Element
     <say-as> Element
     <script> Element
     <sentence> Element
     <sub> Element
     <subdialog> Element
     <submit> Element
     <tag> Element
     <throw> Element
     <token> Element
     <transfer> Element
     <value> Element
     <var> Element
     <voxeo:logcontrol> Element
     <voxeo:recordcall> Element
     <vxml> Element
  CCXML 1.0 Development Guide
  CallXML 3.0 Development Guide
  Voxeo Support
     Support Quick Reference
  Registering for an Account
  Self-Help Tools
  Collecting Information
  Evolution Ticketing System
     Submitting a Support Request
     Escalating a Support Request
  Software Lifecycle and Support Policies
  Getting Further Assistance
  Voxeo Glossary
  Help on Help