Link Search Menu Expand Document

UString.EqualsIgnoreCase Method

Explanation Compare strings case-insensitive
Call format var ret = str.EqualsIgnoreCase( s )
Return value Returns $TRUE if they match, $FALSE if they do not match.
Arguments UString s String to compare
Exception None
Example of use
var str = new UString("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