STRFIND
Finds a string within another string.
Description
Finds a string within another string. If the String to find exists within the String to search, then the character number of the first find (starting from 0) will be stored in the output variable. If the String to find does not exists within the String to search then the output value will be "-1".
Syntax
STRFIND [String to search] [String to find] [Output variable]
Command parameters
Command parameter | Assignment | Value format | Input options |
---|---|---|---|
String to search | Required | String | Local, variable |
String to find | Required | String | Local, variable |
Output variable | Required | String | Local, variable |
String to search:
The string that will be searched.
String to find:
The string that will be searched for within the first string.
Output variable:
The variable that will store the output.
Sample code
STRFIND asd123 12 Output_Variable