An example pleaseI usually break/exit the For if found too that way it doesn't scan the rest of the array/list after found.
B4X:Dim Days() As String Days = Array As String("Sunday", "Monday", "Friday") For i = 0 To Days.Length-1 If Days(i) = "Friday" Then Msgbox("Friday is in the Array!", "") Exit End If Next
Another option:
B4X:Dim list1 As List list1.Initialize2(Days) Dim i As Int = list1.IndexOf("Friday")