any()
Usage
any(collection, expression)
Description
Evaluates a StructrScript expression for every element of a collection and returns true
if the expression evaluates to true
for any of the elements. The keyword data
contains a reference to the loop variable.. See also: all()
and none()
.
Example
${any(user.groups, is_allowed(data, current, 'read'))}