GetStringIndex

From the Scripting Manual
function GetStringIndex(needle: string; haystack: array of string): integer Parameter Info: needle (String): String to search for. haystack (Array of String): Array of strings to search in. Description: This function will return the array index of (needle) if found in array (haystack).