Locate

此説明頁面適用於 Desktop Studio。 此資訊亦適用於 Studio。

Icon of Locate: row of squares with arrows pointing at one square from above and below

在字串中搜尋字元或文字塊。

支援的程式碼類型

The icon for a Generic script type - a rectangle with < and > symbols inside it.

電郵指令碼類型的圖示 - 菱形中的大 @ 符號。

聊天指令碼類型的圖示 - 帶有省略號 (...) 的菱形聊天氣泡。

電話指令碼類型的圖示 - 一種帶有彎曲電話線的老式電話聽筒,表示會發出聲音。

語音郵件指令碼類型的圖示 - 類似於盒式磁帶的符號 - 兩個圓圈位於一條水平線上。

``` 工作項目指令碼類型的圖示 - 有一個角向下折疊的紙張,上面有一個項目符號清單。 ```

SMS 指令碼類型的圖示 - 帶有聊天氣泡的智慧型手機。

Digital 腳本類型的圖示-一部電腦顯示器,旁邊放置一部智能電話。

通用

電郵 聊天 電話 語音郵件 工作項目 SMS Digital

輸入屬性

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

屬性

```

描述

```
字串 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 ( { } ).
StringtoFind The string to look for. Use of variable substitution is common.
變數 The name of the variable that you want to hold the value.
CaseSensitive 此屬性的值為 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.

OnFound

Path taken if the String to Find is located.

提示及技巧

如果找到了正在搜尋的字串,將觸發分支條件找到,但是,變數也將收到一個大於零的值。 這為偵測文字提供了兩種可能的方法。