Whatever message this page gives is out now! Go check it out!

ArrayContainsNoCase

Last update:
May 18, 2026
Note:
As of ColdFusion (2021 release), CORBA has been removed. You can no longer use CORBA-related features, functions, and tags.

Description

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.

Returns

Yes, if the specified object exists in the array.

Category

History
  • Adobe ColdFusion (2018 release): Introduced named parameters.
  • Adobe ColdFusion (2016 release): Added the function

Syntax

ArrayContainsNoCase(array, value)
See also

Parameters

Parameter
Description
array
Name of the array.
valueObject 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>

Output

YES | NO

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page