Searches for a string within another string.
0 |
String |
String to Check |
The string to search through. |
1 |
String |
Sub-string |
The string to find within the search string. |
2 |
Boolean |
Case sensitive? |
Indicates whether the search is case sensistive. If no, case is ignored when determining matches. |
3 |
Step ID |
Step if TRUE |
The step to jump to if the sub-string is found. |
4 |
Step ID |
Step if FALSE |
The step to jump to if the sub-string is not found. |
5 |
Integer |
First Character index |
The index of the first character of the sub-string in the search string. |
5 |
Integer |
First Character index |
The index of the first character of the sub-string in the search string. |
SUCCESS |
This command always succeeds. |
The returned “first character index” is zero based. So, if the sub-string appears at the beginning of the search string, the returned index is zero. For example, searching for ology in metrology would return an index of 4.