Skip to main content
Version: v0.17.0

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.

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