StringFind
Alias:StringFind
, IndexOfSubstring
, FindInstance
Output:SCLInt
Gets the index of the first instance of a substring in a string. The index starts at 0. Returns -1 if the substring is not present.
Parameter | Type | Required | Position | Summary |
---|---|---|---|---|
String In InString | string | ✔ | 1 | The string to check. |
SubString Of | string | ✔ | 2 | The substring to find. |
Examples​
Example 1​
SCL​
StringFind SubString: 'ello' InString: 'hello hello!'
Expected Output​
1
Example 2​
SCL​
FindInstance Of: 'ello' In: 'hello hello!'
Expected Output​
1