NotEqual tag
Definition
- The contents within this tag will execute if the variable value (var) is not equal to the result of the expression (expr).
This tag supports CallFire XML Javascript
Value
- The contents within this tag are more nodes to execute.
Attributes
|
|
| Attribute | Required | Values | Description
|
| name | N | any text | a unique name for the tag
|
| var | Y | any text | the name of any variable or a string value to match against the expression. examples = "1 2 3" , "5", "${call.lastinput}"
|
| expr | Y | any text | a javascript expression to evaluate. examples = " '${call.lastinput}' + ' 2 3'" or "1+2" or "${call.lastinput} + 10"
|
Examples
|
|
<notEqual var="${call.callerid}" expr="1+45 / 50 + $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>
<play type="tts"
voice="male1">
I'm sorry I was mistaken ${call.callerid}.
You have 10 credits left.
</play>
</notEqual>
<notEqual var="${call.callerid}" expr="1+45 / 50 + $call.lastinput">
<goto>beginningTag</goto>
</notEqual>
Also See
-
This tag supports CallFire XML Javascript
Further Reading
- Coming soon.