Operators
Comparison operators
Operator
Description
Example
Result
Examples
{% assign order_qualifies = false %}
{% if order.cancelled_at == blank and cancel_risk %}
{% assign order_qualifies = true %}
{% endif %}{% if has_product != true %}
{% log "Order has no products; skipping" %}
{% assign send_email = false %}
{% endif %}Testing for blank, empty
Blank
Empty
Contains operator
Substring containment
Array element containment
Logical operators
Operator
Example
Result
Check if both the shipping address and billing are blank
Check if tag equals blank or a customer's tags contains a certain tag
Last updated
Was this helpful?