compareNoCase

Performs a case-insensitive comparison of two strings.
An indicator of the difference:
A negative number, if string1 is less than string2
0, if string1 is equal to string2
A positive number, if string1 is greater than string2

compareNoCase(string1, string2) → returns Numeric

compareNoCase Argument Reference

string1
Required

string2
Required

Examples sample code invoking the compareNoCase function


Tag Syntax

<cfset comparison = compareNoCase('ColdFusion', 'coldfusion')> 
 <cfdump var="#comparison#" />    

Expected Result: 0


Fork me on GitHub