containsIgnoreCase

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

Description

The containsIgnoreCase function checks whether the first argument string contains the second argument string. While doing search it ignores the case.

Syntax

containsIgnoreCase(str1 , str2)

The containsIgnoreCase function syntax has the following arguments.

str1 - Required. The main string from which you what to find the search string.

str2 - Required.  The string to be searched for within the main string.

Return Value

Returns true if first argument string contains the second argument string. Returns false otherwise.

Example   

str1 = "I am a test String";

If (containsIgnoreCase(str1,"test"))  //returns true 
{
}

 

If (containsIgnoreCase(str1,"Test"))  //returns true 
{
}