sum

Returns the sum of the values of a set of expressions. Null values are ignored.

Category

Aggregation

Function syntax

sum(<parameters>)

Parameters

  • listInteger
  • listDecimal
  • duration
  • integer
  • decimal

Signatures and returned types

sum(<listDecimal>)

Returns a decimal.

sum(<listInteger>)

Returns an integer.

sum(<integer>,<integer>)

Returns an integer.

sum(<decimal>,<decimal>)

Returns a decimal.

Examples

sum(@{BarBeacon.inventory},5)

sum([10,3,8])

Returns 21.

sum([10.5,null,8.1])

Returns 18.6.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now