Performs a case-insensitive comparison of two strings.
An indicator of the difference:
-1, if string1 is less than string2
0, if string1 is equal to string2
1, if string1 is greater than string2
compareNoCase(string1, string2)
→ returns numeric
<cfset comparison = compareNoCase("ColdFusion", "coldfusion")>
<cfdump var="#comparison#" />
Expected Result: 0
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.