Creator Help

equalsIgnoreCase

This topic describes the syntax and usage of the equalsIgnoreCase function in Zoho Creator .

Description

The equalsIgnoreCase function compares a given String to another String, ignoring case considerations. Two strings are considered equal ignoring case if they are of the same length, and corresponding characters in the two strings are equal ignoring case.

Syntax

<string1>.equalsIgnoreCase(string2)

(or)

equalsIgnoreCase(string1 , string2)

The equalsIgnoreCase function syntax has the following arguments.

string1 - Required. The main string.

string2 - Required.  The string to be compared with the main string.

Return Value

Returns true if the argument is not null and the Strings are equal, ignoring case; false otherwise.

Example

str1 = "Create online database applications with Zoho Creator";

str2 = "Create online database applications with Zoho Creator";

str3 = "create online database applications with zoho creator";

str1.equalsIgnoreCase(str2)  //returns true 

str1.equalsIgnoreCase(str3)  //returns true 

str1 = "Create online database applications with Zoho Creator";

str2 = "Create online database applications with Zoho Creator";

str3 = "create online database applications with zoho creator";

equalsIgnoreCase(str1,str2)  //returns true 

equalsIgnoreCase(str1,str3)  //returns true 

Top