Make.com LabBeginner
Calculate Sum of an Array of Numbers in Make.com
You have an array of prices from an order. You need to calculate the total sum using Make's built-in sum function.
Live Execution Simulator
Idle
π₯
Incoming Data
βοΈ
Make.com Node
π―
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.
Incoming Payload / Data:
{
"prices": [10, 25, 100]
}
Press Enter or click Check Answer. +10 XP
β Solution & explanation
sum(prices)
Output: 135
sum(array) adds up every number in a flat array: 10 + 25 + 100 = 135.π‘ Pro tip: For an array of collections (e.g. line items), extract the numbers first: sum(map(items; price)).
Also accepted: sum(prices; price)