Answers for "mod operation in shopify"

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language