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.

通用

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

Input Properties

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

属性

说明

说明文字

输入在脚本中唯一标识此操作的短语。标题显示在脚本画布上的操作图标下方。The default is the action name.

String

这里的值是要解析的字符串。该属性的值经常使用变量替换。在此属性中输入值时需要使用花括号。

Start

要解析的第一个字符的位置。该属性的值经常使用变量替换。对于随机大小值,可以使用 Locate 操作来查找值。这是一个数值,因此不能在此属性中使用花括号。

End

要解析的最后一个字符的位置。该属性的值经常使用变量替换。对于随机大小值,可以使用 Locate 操作来查找值。这是一个数字字段,因此不能在此属性中使用花括号。

Variable

接收解析文本的变量名称。

Result Branch Conditions

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

条件

说明

Default

除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。如果未定义操作的其他分支,也会执行此操作。