How can I display an order note only when it's present in a flow?

Topic summary

A user is attempting to conditionally display an order note in a Shopify Flow email template, but all tested Liquid conditions are returning true even when no note exists.

Attempted solutions (all failing):

  • Multiple conditional checks: != null, != nil, != blank, != empty
  • Using unless statements with various comparisons
  • Testing against boolean values (== true, == false)
  • Checking for zero value (== 0)

Current issue:
The text “Note:” displays even when fulfillmentOrder.order.note is empty, suggesting the field may not be truly blank/null in Flow’s context.

Proposed solution:
Another user suggests that {%- if fulfillmentOrder.order.note != blank -%} should work correctly, noting that the actual note value would need to be output using {{ fulfillmentOrder.order.note }}.

Status: The discussion remains open with one potential solution offered but not yet confirmed as resolving the issue.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

I’m striking out in trying to figure out how to display an order cart note in a flow “fulfillment ready” > “send email” action. The != blank condition works in regular email notifications templates. How can this be done in flow?

I’ve tried all of the following and they are all returning true (printing "Note: " when there is no cart note on the order):

{%- if fulfillmentOrder.order.note != null -%}Note:  {%- endif -%}
{%- if fulfillmentOrder.order.note != nil -%}Note:  {%- endif -%}
{%- if fulfillmentOrder.order.note != blank -%}Note:  {%- endif -%}
{%- if fulfillmentOrder.order.note -%}Note:  {%- endif -%}
{%- if fulfillmentOrder.order.note != "nil" -%}Note:  {%- endif -%}
{%- if fulfillmentOrder.order.note != 'null' -%}Note:  {%- endif -%}
{%- if fulfillmentOrder.order.note != empty -%}Note:  {%- endif -%}
{%- unless fulfillmentOrder.order.note == empty -%}Note:  {%- endunless -%}
{%- unless fulfillmentOrder.order.note == blank -%}Note:  {%- endunless -%}
{%- unless fulfillmentOrder.order.note == nil -%}Note:  {%- endunless -%}
{%- unless fulfillmentOrder.order.note == false -%}Note:  {%- endunless -%}
{%- unless fulfillmentOrder.order.note == 0 -%}Note:  {%- endunless -%}
{%- if fulfillmentOrder.order.note == true -%}Note:  {%- endif -%}
{%- if fulfillmentOrder.order.note == false -%}No order note.{%- endif -%}
{% for fulfillments_item in fulfillmentOrder.fulfillments %}{%if fulfillments_item.order.note != blank %}Note:  {{fulfillments_item.order.note}}{% endif %}{% endfor %}
{% for fulfillmentOrders_item in fulfillmentOrder.order.fulfillmentOrders %}{%if fulfillmentOrders_item.order.note != blank %}Note:  {{fulfillmentOrders_item.order.note}}{% endif %}{% endfor %}
{%- if fulfillmentOrder.order.note != blank -%}Note:  {%- endif -%}

This should work, although obviously you need to add the {{ fulfililmentOrder.order.note }} to output the note there