Development tools : Global functions : String category : compareIgnoreCase
  
compareIgnoreCase
Description
Compares two Strings lexicographically ignoring case differences.
Usage
Client side: Y
Server side: Y
Syntax
Integer compareIgnoreCase(String string1, String string2)
Arguments
string1
The string to be compared. The argument can be any string.
string2
The string to compare. The argument can be any string.
Return
0 if string1 is the same as string2.
1 if string1 is after string2.
-1 if string1 is before strings in dictionary order ignoring case difference.
Example
compareIgnoreCase("Hello", "World") returns -1
Go up to
String category