endsWithIgnoreCase()
Table of Contents
Overview
The endsWithIgnoreCase() function takes string and searchString as arguments. It returns True if the searchString is found at the end of the string. Otherwise, returns False
Note: This function performs a case-insensitive search.
Return Type
- Boolean
Syntax
<variable> = <string>.endsWithIgnoreCase( <searchString> );
(OR)
<variable> = endsWithIgnoreCase(<string>, <searchString>);
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the boolean value, true or false. | BOOLEAN |
<string> | The string which may end with the searchString. | TEXT |
<searchString> | The searchString with which the main string may end. | TEXT |
Examples
Product = "Zoho Creator";
boolVal= endsWithIgnoreCase(Product, "creator"); //returns true
boolVal= endsWithIgnoreCase(Product, "creator"); //returns true