developer_guide:voicexml_references:elements:else

< else >

The < else > element is used within the conditional logic statement <if> and optional <elseif> element.

<else/>
<if>
None.
None.
None.
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
 <form>
  <field name="password">
   <prompt> what is the code word </prompt>
   <help> It is the name of a fruit </help>
   <noinput> I did not hear you. </noinput>
   <nomatch count="1"> Nope. Try again </nomatch>
   <nomatch count="2"> Nope. Give it another try </nomatch>
   <nomatch count="3">
    Sorry. You didn't get it three times. Bye
    <disconnect/>
   </nomatch>
   <filled>
    <if cond="password=='reset'">
     <clear namelist="password"/>
    <else/>
     This is correct.
    </if>
   </filled>
  </field>
 </form>
</vxml>
  • developer_guide/voicexml_references/elements/else.txt
  • Last modified: 2015/10/27 11:13
  • by borja