Structuring a conditional to trigger on a non-blank metafield

Topic summary

Goal: Configure a Shopify Flow to email when a product variant’s metafield (variant.metafields.inventory.notice) is populated (non-blank). The author is unsure about AND/OR nesting and how Flow handles metafields.

An image (screenshot of the condition) is central to the question.

Update: The current condition is incorrect. In “Add criteria for same list item,” the setup mistakenly selects product variant → metafields instead of selecting metafields_item in the flyout, which causes a nested loop over metafields and leads to unexpected behavior.

Actionable guidance: Use “Add criteria for same list item” with metafields_item to reference the current metafield entry, then evaluate whether its value is not blank. No confirmation of a working configuration yet; discussion remains open.

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

I’m needing to have a flow send me an email if a variant trigger has a specific metafield populated. I get confused with the and/or nesting levels and non-obvious handling of metafields in Flow.

Is the attached screenshot condition structured correctly to pass as true if the variant.metafields.inventory.notice value is non-blank?

No, that is not structured correctly. You chose “Add criteria for same list item” but instead of selecting “metafields_item” in the flyout window, you selected product variant / metafields.

This effectively means for every variant / metafield, you are looping over the metafields a second time, and it will result in weird behavior.