Skip to content
Reference > Methods

strEqualsIgnoreCase(left,right)

Definition

Boolean strEqualsIgnoreCase(String left, String right)

Description

Returns true if the two supplied strings are equal ignoring case or if both are null, false otherwise.

Parameter Definition

Name Type Description
left String The First string to text
right String The Second string to text

Examples

1
2
3
4
5
Boolean r1 = strEqualsIgnoreCase("me","Me"); // r1 == true
Boolean r2 = strEqualsIgnoreCase("You","YOU"); // r2 == true
Boolean r3 = strEqualsIgnoreCase("YouTo","YOU2"); // r3 == false
Boolean r4 = strEqualsIgnoreCase(null,null); // r4 == true
Boolean r5 = strEqualsIgnoreCase(null,"I"); // r5 == false