CallFire Solutions

If

Follow

If


Definition

The contents within this tag will execute if the variable value is equal to the result of the expression.

Value

The contents within this tag are more nodes to execute. This tag can also contain an "else" tag.

Attributes

Attribute Required Values Description
name N any text A unique name for the tag
expr Y any text A JavaScript expression to evaluate. Examples = " '${call.lastinput}' + ' 2 3'" or "1+2" or "${call.lastinput} + 10"

Examples

This gives the user three attempts to press the correct button, then it ends the call.



    0
     
          This is the play tag.  Press 1 for more information.
          
               Nice job pressing one!
               
          
          
               ${Counter}+1
               
                    Too many mistakes.  Bye for now!
                    
               
               Oh dear.  You are taking a long time.  Try again.
               Menu
          
     
Have more questions? Submit a request

Comments