I have an array of strings called TestArray and I want to see if a string, let’s call it TestString is inside TestArray (Case insensitive). If the TestString is inside the TestArray, I want to get the array index. How can I do this?
@Hisuhong If you want to Check for case Insensitive as well, you can use this :
string.join(" “,strArray).ToString.ToLower.Split().IndexOf(string.join(” ",strArray).ToString.ToLower.Split(),“ValueToFind”.tolower)
This Expression will Join the String Array Variable first to convert it to String, then it will convert it into Lower Case, then it will get converted to String Array again and it will check “ValueToFind” is present in it and will return the index if Present