Incrementing variables in liquid without outputting them

Viewed 13307

I am doing a for loop in shopify, I need to increment a variable.

However, when I do

{% increment variable %}

besides incrementing it, it shows the output on the screen!

I can't believe it. Is there a way to avoid this?

Thank you

2 Answers
Related