LOCATE
此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。
|
|
在字符串中搜索字符或文本块。 |
支持的脚本类型
|
|
|
|
|
|
|
|
|
|
通用 |
聊天 | 电话 | 語音邮件 | 工作项目 | 短信 |
|
输入属性
这些属性定义操作在执行时使用的数据。
|
属性 |
说明 |
|---|---|
|
添加说明文字 |
输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。 |
| 字符串 | The string you want to insert, search, or parse. This property supports variable substitution. If this value is a variable, rather than the literal string value, use curly brackets ( { } ). |
| 要查找的字符串 | The string to look for. Use of variable substitution is common. |
| 变量 | The name of the variable that you want to hold the value. |
| 区分大小写 | 该属性的值为 true 或 false。True 要求 StringtoFind 文本与 String 中已包含的文本完全一致,包括相同的字符大小写。 |
结果分支条件
结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。
|
条件 |
说明 |
|---|---|
|
默认 |
Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined. |
|
已找到 |
Path taken if the String to Find is located. |
提示和技巧
如果找到了要搜索的字符串,则分支条件 Found 将被触发,但是,变量也将接收一个大于零的值。 这为检测文本提供了两种可能的方法。