How to check if a number is divisible by another number in Shopify

Sell Online With Shopify
Trusted by millions of businesses worldwide
For a limited time, sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans — offer ends Aug 25.

Shopify Liquid don’t support a function to check if a number is divisible by another number. But you can combine 2 functions: “modulo” and “if” to do that.

You may also like...

Leave a Reply

Your email address will not be published.