string.equalsIgnoreCase

This function checks whether two strings are equal, ignoring the case.

Syntax

string.equalsIgnoreCase(str1, str2)

Arguments

Argument

Type

Description

str1, str2

string

Strings to be compared.

Returns

Type

Description

boolean

True: if the strings are equal

False: if the strings are not equal

Examples

The function string.equalsIgnoreCase("Hello","hello") returns true.