$array.indexOf

Returns the position of the first object in the array which is equal to the given object.
Syntax
    $array.indexOf{array}{object}
DocumentationReturns the position of the first object in the array which is equal to the given object.
The objects may not be the same, just equal. The search is started at position 0. If no match is found -1 is returned.
    Paramter:
      1: The array to search in.
      2: The object to search for.
    Returns:
      The objects position in the array as an integer or -1 if it is not found.
    Throws:
      IllegalArgumentException if the object of parameter 1 is not an array.
Examples
$set{a[0]}{Zero} $set{a[1]}{One} $set{a[2]}{Two} Index of 'One' is: $array.indexOf{$get{a}}{One}
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 2