developer_guide:voicexml_references:elements:else

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


developer_guide:voicexml_references:elements:else [2015/10/27 11:13] (current) – created borja
Line 1: Line 1:
 +====== < else > ======
  
 +===== Description =====
 +The < else > element is used within the conditional logic statement <if> and optional <elseif> element.
 +
 +===== Syntax =====
 +<code>
 +<else/>
 +</code>
 +
 +===== Parents =====
 +<code>
 +<if>
 +</code>
 +
 +===== Children =====
 +<code>
 +None.
 +</code>
 +
 +===== Extensions =====
 +<code>
 +None.
 +</code>
 +
 +===== Limitations/Restrictions =====
 +<code>
 +None.
 +</code>
 +
 +===== Example Code =====
 +<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>
 +</code>
  • developer_guide/voicexml_references/elements/else.txt
  • Last modified: 2015/10/27 11:13
  • by borja