In
Learn how to check if an element exists in a collection.
This operator checks whether an element is in a collection. It works the same way as the containing operator, but in the opposite direction.
When comparing elements, this operator uses the same equivalence rules as the equal to operation.
Multi-condition criteria
You can combine conditions to create more advanced criteria.
Syntax
The basic syntax is:
with /*<name>*/ in /*<collection>*/
The negation of this operation can be expressed as:
with /*<name>*/ not in /*<collection>*/
Parameters
These are the supported parameters:
- nameany
The name of the event property to search for in the collection.
- collection
The collection to check.
Examples
Check if a post with a specific tag was viewed:
user has viewed post with "news" in tags
Or to check the opposite:
user has viewed post with "news" not in tags