If
|
評估一個運算式並根據評估的結果(真或假)採用一個分支。您還可以在指令碼中的
|
Supported Script Types
|
|
|
|
|
|
|
|
一般 |
電郵 | 聊天 | 電話 | 語音郵件 | 工作項目 | 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?