This test shows how custom expressions can be added to ZPT-JS. We have written a custom expression class, AverageExpression, available using avg:. It returns the arithmetic average of the values in the expression.
AverageExpression