Skip to main content
Version: v0.16.0

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

ParameterTypeRequiredPositionSummary
String
In
InString
string✔1The string to check.
SubString
Of
string✔2The 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