You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

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

Search results for "any()"

any()

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().

any(collection, expression)