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

Solved

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

Alexadrea
Shopify Partner
2 0 0

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?

Accepted Solution (1)
paul_n
Shopify Staff
1364 152 319

This is an accepted solution.

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. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Replies 3 (3)

paul_n
Shopify Staff
1364 152 319

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?

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Alexadrea
Shopify Partner
2 0 0

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, ….

paul_n
Shopify Staff
1364 152 319

This is an accepted solution.

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. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.