mod operation in shopify

Solutions on MaxInterview for mod operation in shopify by the best coders in the world

showing results for - "mod operation in shopify"
Francesco
19 Sep 2018
1Input : {{ 3 | modulo: 2 }}
2
3Output : 1
Maria José
03 Feb 2016
1{% capture modulo %}{{ forloop.index | divided_by: 4 }}{% endcapture %}
2
3{% if modulo == 0 %}
4    <div>echo something</div>
5{% endif %}