A better idea would be to add to
ifArray:
Index(x as Dynamic) as Integer
Return the index in the list of the first item whose value is x, -1 if not found
(All implementors of ifArray already do ifArrayGet/ifArraySet - also Delete() is harmonious on integer indexing)
If having to check a long (>100) list though, suggest using a dictionary lookup (i.e. ifAssociativeArray.doesExist(), .lookup() ).
By the way @
RokuKC - any chance of fixing the equality/inequality operators, so that they don't puke "Type Mismatch"? I.e. "=" to return True only when both type and value of the arguments match - and False otherwise. Fair and square, no warnings no nothing - it's already the case in all script languages i can think of (python, javascript, lua, whathaveyou...)