Skip to content

decrement

Subtracts one from a counter, then outputs it.

{% decrement name %}
Liquid
{% decrement stock %} {% decrement stock %}
Output
-1 -2

Shopify: Same as Shopify.

Since theme platform 1.0.

Was this page helpful?