Parse

分析並解析來自給定字串的多個字元。

您可以使用 Locate action在要解析的字串中尋找位置。使用 Parse 從較大的字串中提取一系列數字。例如,字串「8015553200」可使用 Start=1End=3 進行解析,以返回「801」。大多數情況下,變數將包含要解析的資料。

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

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

屬性

描述

標題

輸入在指令碼中唯一標識此操作的短語。標題出現在指令碼畫布上的動作圖示下。The default is the action name.

String

此處的值是需要解析的字串。在此屬性值中,經常使用變數替換。在此屬性中輸入值時需要使用波形括號。

Start

要解析的第一個字元的位置。在此屬性值中,經常使用變數替換。對於隨機大小值,可使用 Locate 動作尋找值。這是一個數字值,因而不能在此屬性中使用波形括號。

End

要解析的最後一個字元的位置。在此屬性值中,經常使用變數替換。對於隨機大小值,可使用 Locate 動作尋找值。這是一個數字欄位,因而不能在此屬性中使用波形括號。

Variable

接收解析文字的變數的名稱。

Result Branch Conditions

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

條件

描述

Default

指令碼未能滿足需要它採用其中一個分支的條件時採用的路徑。如果沒有定義動作的其他分支,也會採用該路徑。