Lucee object methods reference

Object Method String.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
String.compareNoCase(string string2):number

Category

string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
string2 string  Yes A string or a variable that contains one