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

string.equalsIgnoreCase(string2)

Parameters

string, string2: variables of type String

Returns

true: if string equals string2 (ignoring case)

false: otherwise

See also

  • LANGUAGE c_str()

  • LANGUAGE charAt()

  • LANGUAGE compareTo()

  • LANGUAGE concat()

  • LANGUAGE endsWith()

  • LANGUAGE equals()

  • LANGUAGE getBytes()

  • LANGUAGE indexOf()

  • LANGUAGE lastIndexOf()

  • LANGUAGE length()

  • LANGUAGE remove()

  • LANGUAGE replace()

  • LANGUAGE reserve()

  • LANGUAGE setCharAt()

  • LANGUAGE startsWith()

  • LANGUAGE substring()

  • LANGUAGE toCharArray()

  • LANGUAGE toFloat()

  • LANGUAGE toInt()

  • LANGUAGE toLowerCase()

  • LANGUAGE toUpperCase()

  • LANGUAGE trim()