Any
Any( values )
Any( values )
Any( values )
Any( values )
any( values )
Any( values )
Description
The Any
function tests the provided values
and returns true
if any of the items in values
is true
, otherwise it returns false
.
Any
is a better choice for handling collections of values than
the similar Or
function.
The run time of For query "width" errors, the underlying set or page involves more than
100K items. This can happen when using a set function, such as
For example, instead of:
use:
This does mean that if the entire set must be evaluated to arrive at the
correct result, you would have to page through the For query timeout errors, you may specify a larger query timeout via the driver that you are using. |
Returns
A Boolean indicating whether any of the items in values
is
true
.
Examples
The following query uses Any
multiple times to demonstrate how
the function evaluates several groups of values:
Arr(BooleanV(True), BooleanV(True), BooleanV(False), BooleanV(False))
[true true false false]
[true, true, false, false]
[ true, true, false, false ]
[True, True, False, False]
[ true, true, false, false ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!