Answers for "mod operation in shopify inside condition"

0

mod operation in shopify

Input : {{ 3 | modulo: 2 }}

Output : 1
Posted by: Guest on September-28-2020
0

mod operation in shopify inside condition

{% capture modulo %}{{ forloop.index | divided_by: 4 }}{% endcapture %}

{% if modulo == 0 %}
    <div>echo something</div>
{% endif %}
Posted by: Guest on September-28-2020

Browse Popular Code Answers by Language