equalsIgnoreCase

equalsIgnoreCase()

Overview

The equalsIgnoreCase() function takes two strings as arguments. It compares both the strings, and returns True if both are found to be equal. Otherwise, it returns False.

Note: This function performs a non case-sensitive search.

Return Type

  • Boolean

Syntax

<variable> = <string1>.equalsIgnoreCase(<string2>);

(OR)

<variable> = equalsIgnoreCase( <string1>, <string2> );
ParameterDescriptionData type
<variable>Variable which will contain the boolean value, true or false.BOOLEAN
<string1>

The string to be compared with string2.

TEXT
<string2>

The string to be compared with string1.

TEXT

Examples

Product = "ZohoCreator";
var = equalsIgnoreCase(Product, "ZohoCreator");     //returns true

Product ="ZohoCreator";
var = equalsIgnoreCase(Product, "Zoho Creator");   //returns false

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com