Iteration
for
{% for product in products %}
{% assign product_tags = product.tags | split: ", " %}
{% endfor %}{% assign seconds_per_day = 86400 %}
{% for i in (1..days_ahead) %}
{% assign time_ahead = 0 | plus: seconds_per_day | times: i %}
{% endfor %}The forloop object
{% for tag in tags %}
{% if forloop.first %}
{% comment %}
This is the first tag in the set!
{% endif %}
{% endif %}
{% endfor %}continue
break
Last updated
Was this helpful?