Skip to content

Commit

Permalink
Update _filters/sum.md
Browse files Browse the repository at this point in the history
Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
  • Loading branch information
lucianosousa and shainaraskas committed Jul 7, 2023
1 parent 1fe0b49 commit 5abf6a5
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 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.
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 quantity for all products in the collection.

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

0 comments on commit 5abf6a5

Please sign in to comment.