Loop
|
執行重複分支條件指定的次數。 按照 Repeat 屬性所說明的次數執行「重複」分支。例如,如果 Repeat 為 5,則將執行符合 Repeat 分支條件的動作的 5 次重複。在 Repeat 分支中設定的反覆運算完成後,下一次執行 Loop 時,將觸發 Finish 分支。 例如,在 IVR |
Supported Script Types
|
|
|
|
|
|
|
|
一般 |
電郵 | 聊天 | 電話 | 語音郵件 | 工作項目 | SMS | 數位 |
Input Properties
這些屬性定義了動作執行時使用的資料。
屬性 |
描述 |
---|---|
Repeat | 在採取 OnFinished 分支之前,迴圈的重複次數。 |
CounterName | 接收FromValue加Step目前值的變數名稱。 |
Result Branch Conditions
結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。
條件 |
描述 |
---|---|
OnFinished |
重複次數超過指定次數時的路徑。 |
OnRepeat |
當前重複計數小於或等於指定數量時採用的路徑。 |
Script Example
此範例不是一個完整的指令碼。使用此動作時需要額外的指令碼編寫工作。
fter the script is triggered,
Would you like to download this script?
In a simple event, when a call is placed on hold a loop will occur in which music plays, followed by a message, followed by music and another message and so on until the call is taken off hold.
Would you like to download this script?