Used to determine if a value is in the given array, case insensitive.
arrayContainsNoCase(array, value)
→ returns boolean
someArray.containsNoCase(value)
CF 2016+
writeOutput(arrayContainsNoCase(["first", "SECOND"], "First"));
Lucee 4+ CF 2021+
arrayWithStrings = ["first", "SECOND"];
writeOutput(arrayWithStrings.containsNoCase("FIrst"));
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.