If

评估 表达式,并根据评估结果(真或假)选择分支。您也可以在脚本中使用在 Snippet action中创建 IF 语句

 

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

通用

电子邮件 聊天 电话 语音信箱 工作项目 短信 数字

Input Properties

这些属性定义操作在执行时使用的数据。

属性

说明

Caption Caption 更改为在脚本中唯一标识此操作的内容。IVR 发布路径报告包括操作的名称和标题。独特的描述性标题使报告更易于阅读和理解。Use only for BEGIN CASE IF IVRLOG MENU and REQAGENT
Expression 对一个值进行求值,以确定表达式是“对”还是“错”。例如,TOTAL=>0(总数等于或大于 0)。

Result Branch Conditions

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

True

表达式为真时所采用的路径。

False

表达式为假时所采用的路径。

Script Example

此示例并非完整的脚本。要使用此操作,需要额外的脚本编写工作。

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?