PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Sum

Adds up all the numbers in a list and returns the total.

The Sum action adds up every number in a list and returns the total. Use it to total amounts, quantities or scores that you collected in a list variable.

Add the action

In the Process Designer toolbox, open List, then Numeric, and pick Sum (or type Sum in the search box).

The Sum action properties: Input a list of numbers and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input a list of numbersInputList of numbersYesThe numbers to add, for example [1,2,3].
ResultOutputNumberYesThe total. A whole number when the total is whole, otherwise a decimal number.

Example

Input a list of numbersResult
[1,2,3]6
[1.5,2.25,-1]2.75
["10","2.5"] (numbers stored as text)12.5
[] (empty list)0
[1,"abc"]The step fails: The input was not a number. Please try again.

Good to know

  • Numbers stored as text ("10") are converted and added.
  • An empty list returns 0; it does not fail.
  • Any element that is not a number makes the step fail.
  • Calculations use decimal numbers (double precision), so very large totals can lose precision.

On this page