notContains()

Overview

The notContains() function takes inputValue and searchValue as arguments. It returns true if the inputValue does not contain the searchValue. Otherwise, it returns false.

Note: This function performs a case-sensitive search.

Return Type

  • Boolean

Syntax

<variable> = <inputValue>.notContains( <searchValue> );

where,

ParameterData typeDescription
<variable>BOOLEANVariable which will contain the boolean value, true or false
<inputValue>TEXT/ LIST/ MAP/ COLLECTIONThe value which may contain the searchValue.
<searchValue>Any datatypeThe value to be searched for, in the input value.

Examples

 /*The notContains() function on TEXT input value*/
 products = "Zoho Creator";
 boolVal = products.notContains("Creator"); 
 info boolVal; // returns false
 
 /*The notContains() function performs a case-sensitive search*/
 products = "Zoho Creator";
 boolVal = products.notContains("CREATOR");
 info boolVal; // returns true
 
 /*The notContains() function on LIST*/
 products = List();
 products.add("Creator");
 products.add("CRM");
 products.add("Cliq");
 boolVal = products.notContains("Books"); 
 info boolVal; // returns true
 
 /*The notContains() function on MAP input value*/
 product_details = Map();
 product_details.put("product", "Creator");
 product_details.put("subscription", "yearly");
 boolVal = product_details.notContains("price");
 info boolVal; // returns true
 
 /*The notContains() function on index-value Collection*/
 products = Collection();
 products.insert("Creator");
 products.insert("CRM");
  boolVal = products.notContains("Cliq");
 info boolVal; // returns true
 
 /*The notContains() function on key-value collection*/
 product_details = Collection();
 product_details.insert("product", "Creator");
 product_details.insert("subscription", "yearly");
 boolVal = product_details.notContains("subscription");
 info boolVal; // returns false