Link Search Menu Expand Document

String.EqualsIgnoreCase Method

Explanation Compare strings case-insensitive
Not supported on Mobile
Call format var ret = str.EqualsIgnoreCase( s )
Return value Returns $ TRUE if they match, $ FALSE if they do not match.
Arguments String s String to compare
Exception None
Example of use
var str = new String("ABC");
var arr = new Array("ABC", "abc", "xyz");
for (var n in arr) {
    if (str.EqualsIgnoreCase(arr[n])) {
        print(arr[n], "\n");
    }
}
    
Related item LocaleCompare method