ArrayFindNoCase

Performs a case-insensitive search in the array for the specified object. Returns the index of the object found, or 0 if the object was not found.

ArrayFindNoCase( array, value )

Returns: Number

Argument Description
array
array, required

The array to search in

value
any, required

The value to find

Examples

arrVariable = [ "Water", "Sky", 2, "Air" ];
WriteDump( ArrayFindNoCase( arrVariable, 5 ) ); // Outputs 0
WriteDump( ArrayFindNoCase( arrVariable, "air" ) ); // Outputs 4
WriteDump( ArrayFindNoCase( arrVariable, 2 ) ); // Outputs 3

See also