🔢List conditions

Let's break down the idea of list conditions and subconditions in a way that's easy to understand. You can think of list conditions as the rules that apply to a list as a whole. If a list meets these conditions, then we say the list "matches" these conditions. Now, to refine what we're looking for within that list, we use subconditions. These are like more specific rules that apply to each item inside the list.


New Item

Triggered when a new item is added that fits predefined requirements. This condition allows for dynamic lists, focusing on the addition of items that adhere to specific characteristics.

Example: For a list tracking inventory, the condition might specify that the new item must be a kitchen appliance. If a microwave (a kitchen appliance) is added to the list, this condition is met.

First Item

This condition is met when the first item in the list matches specific requirements. It's useful when the sequence of items matters, and the initial item sets the context or requirement.

Example: In a list of names, the first item condition could be that the name must start with "A". If the first name is "Alice," the condition is met.

Last Item

This focuses on the last item in a list, ensuring it adheres to specified criteria. It's particularly relevant when the final position holds importance, like a concluding statement or summary.

Example: For a list of numbers, the last item condition might be that it has to be even. If the list ends with "24," the condition is satisfied.

Any Item

This provides flexibility by only requiring at least one item in the list to meet the set criteria. It's beneficial when the presence of a particular trait is necessary, but its position is irrelevant.

Example: In a collection of colors, the condition might be the inclusion of "blue." If any item is "blue," regardless of its position, the condition is met.

Every Item

For this condition to be met, each item in the list must comply with the specified subconditions. It's useful for ensuring uniformity or consistency within a collection.

Example: In a list of passwords, the condition could be that every password must contain at least one number. If all passwords comply, the condition is achieved.

Integrating List Data in Automations and Alerts

When we use these list conditions, we also get a handy tool called "Condition Matching Item", available in the Actions section. When running an automation, you can feed it with items that match the condition. This allows us to specifically focus on the items in our list that actually meet our conditions, essentially filtering the list down to just the items we're interested in.

By thinking about list conditions and subconditions this way, we gain a powerful method to filter and work with lists, ensuring our automations match the exact scenario we are interested.

Need help?

pageCommon questions (FAQ)⛑️pageTroubleshooting🚁pageSupport

Last updated