Else tag

Definition

The contents within this tag will execute when the conditions of the <if> tag have not been met. This tag is always inside an <if> tag.

Value

The contents within this tag are more nodes to execute.

Attributes

Examples

In the example below the system will play "Sorry we couldn't find you" and then will jump to the tag named "enter-id" only if the expression (1+45 / 50) &gt; ${call.lastinput} equals false.
<if expr="(1+45 / 50) &gt; ${call.lastinput}">
       <play type="tts" voice="male1">
       Hello ${call.callerid}. You have 12 credits left.
       </play>
       <play type="tts" voice="male1">
       Oh wait ${call.callerid}. You have 11 credits left.
       </play>

       <else>
            <play type="tts"> 
            Sorry we couldn't find you!
            </play>
            <goto>enter-id</goto>
       </else>
</if>

Also See