input|sum( value [,...] )
Name | Type | Description | Required |
---|---|---|---|
value | number | A value that should be added to the result. | Only if the input parameter is omitted. |
This operator adds up all the parameters (including the input parameter) and returns the result.
{1|sum( 2 )}
or
{sum( 1, 2 )}
The following output will be produced: "3".
{1|sum( 2, -3, 4)}
The following output will be produced: "4".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.