The CompareListGen Generator returns ‘true’ or ‘false’ depending on whether a referenced Attribute value is contained in a given list.


The following parameters may be configured for the CompareListGen Generator. Items with an asterisk* are required.   

  • list - Collection of constant values or references. Stores one constant value or reference on each row of the list.

  • condition* - The condition determines how the referenced value will be compared with the values in the list.  The conditions are the following:

    • isInList - Will return true if the referenced value is found within the list.

    • isNotInList - Will return false if the referenced value is not found within the list.

  • reference* - The Attribute to reference. Example: #{}

Example 1: Check If the Given Colors are Present in Another List

This example uses two linked Generators to check if the colors in the list Parameter are in another list. For this example, two Generators are used: CompareListGen and ListGen

The ListGen Generator is being referenced in the reference Parameter for the CompareListGen Generator, as shown below: 

Note: To learn more about linking Generators, please see the following section of the knowledge base: Linked Generators.

Below is the configuration for the ListGen Generator, which contains the colors that are being compared with the list Parameter values in the CompareListGen Generator. 

Sample Output

gen1 = referenced list

gen2 = output once compared to gen1 (referenced list)