Lava Filters - Sum

Category:Arrays

Description:Performs a mathematical summation of all numeric values in an array and outputs the result.
Input: "Items": [ { "Name": "Shirt", "Price": 15.25 }, { "Name": "Sweater", "Price": 25.00 }, { "Name": "Jacket", "Price": 45.50 } ]
Lava: Total: ${{ Items | Select:'Price' | Sum }}
Output: Total: $85.75