If

Provides one or two choices to the contact, and depending on their selection, the script will follow one of two branches.

Supported Script Types

Properties

Property Details
Expression An evaluation of a value to determine if the expression is TRUE or FALSE. For example, TOTAL=>0 (Total equal to or greater than 0). For more information, see Expressions.

Branches

Branch Details

True

Path taken if the expression is true.

False

Path taken if the expression is false.

Tips & Tricks

  • If uses an expression to control script flow. If the expression is true, then the script follows one branch. If the expression is false, it follows another.

Phone Script Example Using If

When this script is triggered, the number of available agents are counted. The If action uses the expression TOTAL>0 to determine which branch to take. If the total number of available agents is greater than 0, a menu will provide options to the caller. If the total number of agents is not greater than 0, then a message will play and the script will hang up the call.

Would you like to download this script?