Table of Contents

< else >

Description

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

Syntax

<else/>

Parents

<if>

Children

None.

Extensions

None.

Limitations/Restrictions

None.

Example Code

<?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>