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.

一般

電郵 聊天 電話 語音郵件 工作項目 SMS 數位

Input Properties

這些屬性定義了動作執行時使用的資料。

屬性

描述

Caption Caption 改為能在指令碼中唯一標識此動作的內容。「IVR 按鍵路徑」報告包括動作名稱和標題。描述性的、獨特的標題使報告更容易閱讀和理解。Use only for BEGIN CASE IF IVRLOG MENU and REQAGENT
Expression 對值進行的評估,用於確定運算式為 TRUE 還是 FALSE。例如,TOTAL=>0(總數大於或等於 0)。

Result Branch Conditions

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

True

如果運算式正確,則採用的路徑。

False

如果運算式為 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?