As of ColdFusion (2021 release), CORBA has been removed. You can no longer use CORBA-related features, functions, and tags.
This function searches an array for the presence of a specified object. The function searches for simple objects such as strings and numbers or for complex objects such as structures. Simple object string searches are case-insensitive. This function does not support searches for COM and CORBA objects.
Yes, if the specified object exists in the array.
History
ArrayContainsNoCase(array, value) |
See also
ArrayContains, ArrayFind, ArrayFindNoCase
Parameter |
Description |
|---|---|
array |
Name of the array. |
| value | Object to search for. |
Example
<cfscript> myArray=["Boat","Car"]; WriteOutput(ArrayContainsNoCase(myArray,"boat") & " | "); //returns YES since "Boat" is a member of myArray WriteOutput(ArrayContainsNoCase(myArray,"train")); //returns NO since "Train" is not a member of myArray </cfscript>
YES | NO
Sign in to your account