Created
April 21, 2017 12:27
-
-
Save joe-dempsey/e0d2e0e422bba076c9df30099a1eb6eb to your computer and use it in GitHub Desktop.
How to count in Liquid for Shopify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign counter = 0 %} | |
{% for something in somethings %} | |
{% assign counter = counter | plus: 1 %} | |
{% endfor %} | |
{{ counter }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment