🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators average
Created by Hans.karlsen on 2023-06-05 · Last edited by Vale.buyondo on 2026-01-10.


The average operator iterates over a collection of numeric values (Integer, Decimal, or Real) and returns their average.

Syntax

collection->average

Example

Order.allInstances.Total->average

Returns: The mean value of the Total attribute across all Order objects