This article describes how the "in" operator works with the Workflows List Find and List Filter cards.
- Workflows List Find card
- Workflows List Filter card
When using the in operator with the List Find and List Filter cards, if the input list is considered to be value a, and the comparison value is considered to be value b, the card is looking for value a to be in value b. In other words, it's checking to see if the value of each list item (based on the specified path when using a list of objects) is in the comparison value.
In the following example, the List Filter card is being used with a list of group names and a comparison value of "Domain". None of the group names are in the comparison value "Domain", so the result is an empty list:
To filter the list down to group names that contain the text "Domain", use the Filter Custom card instead and iterate through the list using a helper flow. The helper flow must include logic to check if the text "Domain" is in the group name, and if so, return a value of True. The output of the Filter Custom card is a new list that includes only the group names that contain the text "Domain".
