COMPTEL

Metadata Instruction : Check if an element exists in an Array.
Edited By : Sobhit Sharma

Use Cases - When to use this command

Description

COMPTEL performs the search for an element in an Array. To determine whether the element was found in the array, We use another variable as a flag. If the element is found, We can set the value of flag to anything.

Guidelines for Usage:

How to use this command

COMPTEL command is for node level operations. It can be used in any node as an instruction, except for the root node. It should not be used on the Arrows.

Let's take an example: COMPTEL "NJ" $city_list $is_found "true". Here, We are searching for "NJ" in $city_list , if found then value of $is_found will be set to true. Let's say $city_list here is ["NY", "NJ", "AZ", "CA"] and default value of $is_found is false. As you can see "NJ" is present in $city_list that means $is_found is going to be set to true. If "NJ" was not present in $city_list then the value of $is_found would remain false.

Examples

Simulated Metadata Editor
processing icon
Analytics API Call Body
Analytics API Response Body