Category: Tech Tips

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

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

0

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

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.