How can I automate multiple number values in Shopify Flow conditions?

I’m trying to figure out how to set a value in the Shopify Flow conditions that shows the multiple of a certain number. We’re sending coupon emails to customers who continued the subscription every 6 times, and currently we need to keep changing the condition value to 6, 12, 18…and so on. Could someone give a hand?

It’s not clear what you want to do exactly. It sounds like you need to get the number of orders in a given subscription and then check if that count is a multiple of 6. How are you planning to get the count in the first place?

Hi Paul, appreciate your response. we’ve made customizations so that the number of subscription will be counted in the customer metafields when subscription products are fulfilled.
So in the flow, we made the condition to check the metafields value number when subscription orders were made. Some subscription menus are weekly, so it’s fairly easy to reach a high number.
I was wishing to place a liquid code in the value to automatically count the multiple number, so I can avoid adding the value number in the flow every time, such as 6, 12, 18, 24, ….

You can’t yet use code in conditions, so it’s not possible in a condition to check if its a multiple of 6, unless you hard-code the values 6,12,18,24, etc.

1 Like