Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello folks, new here, and pretty new to Shopify.
I am at a loss as to why this condition in flow is evaluating to false?
Should the second condition not be true, making the whole condition true, or am I setting the second condition incorrectly for it to see the tags as empty?
Solved! Go to the solution
This is an accepted solution.
Hi Amzia,
This happens when there are no tags on the customer. The list of customer tags is empty and so it is not true that "at least one of customer / tags" meets the conditions specified. Another approach would be to use "None of customer / tags" instead and update the conditions to be "includes", change the "OR" to "AND", and "not empty and exists":
Make sure to update the "then" and "otherwise" branches based on the updated condition.
Thanks!
Ryan
Heddy from Gameball: Loyalty Program & VIP here!
Looking at the screenshot, it seems the "OR" condition might be evaluating to false because of how the conditions are structured. In Shopify Flow, if any one of the conditions isn’t formatted correctly or doesn't match the exact field data you're targeting, the entire "OR" condition could fail. Make sure each condition is independent, checking the exact data field values and formatting. Double-check that the fields you're comparing are valid for the "OR" logic to apply correctly.
At least one of handles the null state in a weird way. Change it to use None of:
https://help.shopify.com/en/manual/shopify-flow/reference/conditions#does-not-include
This is an accepted solution.
Hi Amzia,
This happens when there are no tags on the customer. The list of customer tags is empty and so it is not true that "at least one of customer / tags" meets the conditions specified. Another approach would be to use "None of customer / tags" instead and update the conditions to be "includes", change the "OR" to "AND", and "not empty and exists":
Make sure to update the "then" and "otherwise" branches based on the updated condition.
Thanks!
Ryan
How I think about this type of condition:
So using "None of" is the best approach if you are trying to check that a tag doesn't exist. If the list if empty, it will return true. If the list has your tag, it will return false. Be careful not to use a double-negative.
FYI, this is documented here: https://help.shopify.com/en/manual/shopify-flow/reference/conditions#none-example
Thanks all, good advice.
The simplest solution for what I was trying to do seems to be this:
It's accomplishing what I want to do. Cheers
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024