Equal tag
Definition
- The contents within this tag will execute if the variable value (var) is equal to the content or result of the expression (expr).
Value
- The contents within this tag are more nodes to execute.
This tag supports CallFire XML Javascript
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. example -- " '${call.lastinput}' + ' 2 3'"
|
Examples
|
|
The following checks to see if the ${call.callerid} is 12132212200. If it is, the system will say:
"Hello 12132212200. You have 12 credits left. Oh wait 12132212200. You have 11 credits left. I'm sorry I was mistaken 12132212200.
You have 10 credits left."
If the callerid is not 12132212200 the system will skip the contents of the equal tag.
<equal var="${call.callerid}" expr="12132212200">
<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>
</equal>
Also See
-
This tag supports CallFire XML Javascript