Skip to content
Log in

sum - Liquid Filter Reference

On this page

Description

Sums all items in an list.

Property Value
Return Type number
Category collections

Examples

```liquid

{{ numbers | sum }} ```

Output: 10

```liquid

{{ products | sum: “price” }} ```

Output: 210

Was this article helpful?

Was this article helpful?