Skip to content

increment

Outputs a counter, then adds one to it.

Counters are separate from variables made with assign and start at 0.

{% increment name %}
Liquid
{% increment cards %}{% increment cards %}{% increment cards %}
Output
012

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?