This page is also available in 2 other languages
Change language 

equalsIgnoreCase()

[StringObject Function]

Description

Compares two Strings for equality. The comparison is not case-sensitive, meaning the String("hello") is equal to the String("HELLO").

Syntax

myString.equalsIgnoreCase(myString2)

Parameters

myString: variable of type String.
myString2: variable of type String.

Returns

true: if myString equals myString2 (ignoring case).
false: otherwise.

See also