listContainsNoCase

Determines the index of the first list element that contains a
specified substring.

listContainsNoCase(list, substring [, delimiters]) → returns numeric

Argument Reference

list string
Required

substring string
Required

delimiters string
Default: ,

Examples
Sample code invoking the listContainsNoCase function

Return the first instance position of 'foo', irrespective of case

listContainsNoCase("sheep,goat,Foo,bar,foo", "foo")

Expected Result: 3

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub