ANY

Description

ANY evaluates if at least one value in a list is true. It is an alias for SOME.

If you need to check whether all values in a list are true, use ALL.

Example

p is Person
ANY(p.nationalities = 'Swiss')

This returns true if at least one of the person's nationalities is Swiss.

Empty lists

ANY([]) evaluates to false. See the SOME page for the rationale.

Last updated

Was this helpful?