Skip to content

Commit

Permalink
Update _filters/sum.md
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Klingbaum <[email protected]>
  • Loading branch information
lucianosousa and adamklingbaum authored Jul 6, 2023
1 parent 9b461f0 commit a792cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _filters/sum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Sums all items in an array.

If a string is passed as an argument, it sums the property values.

In this example, assume the object `collection.products` contains a list of products, and products has a `quantity` property. Using assign with the sum filter creates a variable that contains the total amount of quantities in all products from the collection.
In this example, assume the object `collection.products` contains a list of products, and each `product` object has a `quantity` property. Using `assign` with the `sum` filter creates a variable that contains the total amount of quantities for all products in the collection.

<p class="code-label">Input</p>
```liquid
Expand Down

0 comments on commit a792cba

Please sign in to comment.