Contains defined tag but condition is not true

Topic summary

Issue: A Shopify Flow condition to detect a customer tag containing “Inactive” did not trigger. Root cause was whitespace in the condition string/tags, which prevented a match. Removing extra spaces fixed the first problem.

Follow-up: A condition checking for two tags under a single “At least one of customer/tags” setup showed each check matching individually, yet the overall condition evaluated false. Explanation: the loop iterates through tags one at a time; both checks can’t be true simultaneously for the same tag, so the combined evaluation fails.

Solution: Use two separate loops—one “At least one of customer/tags” for each tag—to ensure the condition passes if either tag exists. This aligns with checking for either/or across the full tag list rather than within a single iteration.

Outcome: User acknowledged the whitespace fix and accepted the separate-loop approach. Discussion appears resolved. Images provided were screenshots of Flow conditions; they illustrate setup but are not required to understand the solution.

Summarized with AI on January 1. AI used: gpt-5.

Thanks @DaveMcV , it reads like it should work with both ways but thanks for sharing the solution.