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.

none()

Usage

none(collection, expression)

Description

Evaluates a StructrScript expression for every element of a collection and returns true if the expression evaluates to true for none of the elements. The keyword data contains a reference to the loop variable.. See also: any() and all().

Example

${none(user.groups, is_allowed(data, current, 'read'))}

Search results for "none()"

none()

Evaluates a StructrScript expression for every element of a collection and returns true if the expression evaluates to true for none of the elements. The keyword data contains a reference to the loop variable.

See also: any() and all().

none(collection, expression)