StringFindLast
Alias:StringFindLast, LastIndexOfSubstring, FindLastSubstring, FindLastInstance
Output:SCLInt
Gets the last instance of 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​
StringFindLast SubString: 'ello' InString: 'hello hello!'
Expected Output​
7
Example 2​
SCL​
FindLastInstance Of: 'ello' In: 'hello hello!'
Expected Output​
7