add iteration shopify code example
Example 1: liquid for loop
{% for product in collection.products %}
{{ product.title }}
{% endfor %}
Example 2: break inside loop in shopify
{%- if c_product.id == product.id -%}
{% break %}
{%- endif -%}
{% for product in collection.products %}
{{ product.title }}
{% endfor %}
{%- if c_product.id == product.id -%}
{% break %}
{%- endif -%}