notContains

notContains()

Overview

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

Note: This function performs a case-sensitive search.

Return Type

  • Boolean

Syntax

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

(OR)

<variable> = notContains(<inputValue>, <searchValue> );
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");// returns false
 
 /*The notContains() function performs a case-sensitive search*/
 products = "Zoho Creator";
 boolVal = products.notContains("CREATOR");// returns true
 
 /*The notContains() function on LIST*/
 products =List();
 products.add("Creator");
 products.add("CRM");
 products.add("Cliq");
 boolVal = products.notContains("Books");// 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");// returns true
 
 /*The notContains() function on index-value Collection*/
 products = Collection();
 products.insert("Creator");
 products.insert("CRM"); boolVal = products.notContains("Cliq");// 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");// returns false
 

Share this post : FacebookTwitter

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

Write to us: support@zohodeluge.com