notContains() | Zoho QEngine Help

notContains()

In a nutshell
The notContains() function performs a case-sensitive search to check whether an input value does not contain a specified search value. It takes an input value and a search value as arguments and returns True if the input value does not contain the search value and False if it does. The return type is Boolean.

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.

NotesNote: 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>TEXTLISTMAPCOLLECTIONThe value which may contain the searchValue.
<searchValue>Any datatypeThe value to be searched for, in the input value.

Examples

  1. /*The notContains() function on TEXT input value*/
  2.  products = "Zoho Creator";
  3.  boolVal = products.notContains("Creator");
     
  4.  info boolVal; // returns false
  5.  
     
  6. /*The notContains() function performs a case-sensitive search*/
  7.  products = "Zoho Creator";
  8.  boolVal = products.notContains("CREATOR");
  9.  info boolVal; // returns true
  10.  
     
  11. /*The notContains() function on LIST*/
  12.  products = List();
  13.  products.add("Creator");
  14.  products.add("CRM");
  15.  products.add("Cliq");
  16.  boolVal = products.notContains("Books");
     
  17.  info boolVal; // returns true
  18.  
     
  19. /*The notContains() function on MAP input value*/
  20.  product_details = Map();
  21.  product_details.put("product", "Creator");
  22.  product_details.put("subscription", "yearly");
  23.  boolVal = product_details.notContains("price");
  24.  info boolVal; // returns true
  25.  
     
  26. /*The notContains() function on index-value Collection*/
  27.  products = Collection();
  28.  products.insert("Creator");
  29.  products.insert("CRM");
  30.   boolVal = products.notContains("Cliq");
  31.  info boolVal; // returns true
  32.  
     
  33. /*The notContains() function on key-value collection*/
  34.  product_details = Collection();
  35.  product_details.insert("product", "Creator");
  36.  product_details.insert("subscription", "yearly");
  37.  boolVal = product_details.notContains("subscription");
  38.  info boolVal; // returns false