CompareNoCase
Performs a case-insensitive comparison of two strings.
-1, if string1 is less than string2 0, if string1 is equal to string2 1, if string1 is greater than string2
Method Signature
CompareNoCase(string1=[string], string2=[string])
Arguments
Argument
Type
Required
Description
Default
string1
string
true
The first string to compare
string2
string
true
The second string to compare
Examples
Tag Syntax
<bx:set comparison = compareNoCase( "Boxlang", "boxlang" ) >
<bx:dump var="#comparison#"/>
Result: 0
Additional Examples
dump( CompareNoCase( "100 MAIN ST.", "675 EAST AVENUE" ) );
// -1
Related
Last updated
Was this helpful?