Searches for a sequence of characters in a string variable and branches accordingly. |
If found, the position of the first character of the located sequence (offset) is stored for use in other string manipulation action cells.
The offset is zero-based. For example, searching for the three-character sequence 'xyz' in a string 1234xyzAGSW, returns an offset value of 4.
Note: for more advanced searches, consider using the Regex Match action cell.
Option |
Description |
Search Value |
Enter the sequence of characters to search for (a literal value preceded by =, or a string variable). |
Search String |
The string to search (a literal value preceded by =, or a string variable). |
Offset |
The integer variable in which to store the offset. |
Exit Points |
Description |
Found |
This is taken if the character sequence was found. |
Not Found |
This is taken if the character sequence was not found. |
Error |
This is taken if an internal error occurred. |