equal

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 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 caller ID is not 12132212200, the system will skip the contents of the equal tag.


    
        Hello ${call.callerid}. You have 12 credits left.
    
    
        Oh wait ${call.callerid}. You have 11 credits left.
    
    
        I'm sorry I was mistaken ${call.callerid}. You have 10 credits left.