ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

sum

Summary

Returns the sum of all parameters.

Usage

input|sum( value [,...] )

Parameters

NameTypeDescriptionRequired
value number A value that should be added to the result. Only if the input parameter is omitted.

Returns

Number (sum of all parameters + input).

Description

This operator adds up all the parameters (including the input parameter) and returns the result.

Examples

Example 1

{1|sum( 2 )}

or

{sum( 1, 2 )}

The following output will be produced: "3".

Example 2

{1|sum( 2, -3, 4)}

The following output will be produced: "4".

Balazs Halasy (05/02/2004 10:48 am)

Balazs Halasy (04/05/2005 2:21 pm)


Comments

There are no comments.