Skip to content
Maarten Hilferink edited this page Apr 8, 2026 · 7 revisions

Aggregation functions all

syntax

  • all(a)
  • all(a, relation)

definition

  • all(a) results in a boolean parameter, with the value True if all values of boolean data item a are True and the value False in all other cases.
  • all(a, relation) results in a boolean attribute, with the values True if all values of boolean data item a are True and the values False in all other cases, grouped by relation. The domain unit of the resulting attribute is the values unit of the relation.

applies to

  • attribute a with bool value type
  • relation with value type of the group CanBeDomainUnit

conditions

The domain unit of arguments a and relation must match.

performance

  • Without relation: O(n) where n = number of elements in the domain of a. May short-circuit when first False is found.
  • With relation: O(n) where n = number of elements in the domain of a. Evaluates all elements to determine result per group.

example

parameter<bool> allA := all(A); result = True
parameter<bool> allB := all(B); result = False
parameter<bool> allC := all(C); result = False
A B C
True True False
True False False
True True False
True False False
True True False

ADomain, nr of rows = 5

see also

Clone this wiki locally