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'))}

Graph-Browser

Related Articles
About this article
Last change 2018-05-04
Topics Functions