$indexOf

Returns the index within the given string of the first occurrence of the specified substring, starting at the specified index.
Syntax
    $indexOf{main_string}{sub_string}{begin_index}
DocumentationReturns the index within the given string of the first occurrence of the specified substring, starting at the specified index:

    Parameters:
      main_string, the string.
      sub_string, the substring to examine if contained in the main_string.
      begin_index, a optional parameter used to specify an offset in the main_string to start searching at.
    Returns:
      if the sub_string argument occurs as a substring within the main_string then the index of the first character of this occurrence is returned; -1 otherwise.
    Note:
      there is no restriction on the value of begin_index. If it is negative, it has the same effect as if it were zero and the
      entire main_string may be searched. If it is greater than the length of this mani_string, it has the same effect as if it were equal to
      the length of the main_string and -1 is returned.
Examples
Example 1
    $indexOf{SITEFORUM}{F}{0}

    Result:
    4
Example 2
    $indexOf{SITEFORUM EUROPE AG}{E}{4}

    Result:
    10
Example 3
    $indexOf{SITEFORUM}{Y}{1}

    Result:
    -1 (unmatched)
GroupString
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 3