Guide
Shopify Liquid Cheat Sheet 2026
Liquid Operators
Operators compare values inside if, unless and case conditions.
== and !=
CorrectedEqual to, and not equal to. (Older cheat sheets print this as !-, which is a typo.)
{% if product.type == 'Shirt' %}
{% if product.vendor != 'Acme' %}> < >= <=
Greater than, less than, greater than or equal to, less than or equal to.
{% if product.price >= 5000 %}Free shipping{% endif %}or / and
Combine conditions. Liquid has no parentheses, and conditions are evaluated from right to left — nest if tags when order matters.
{% if product.available and product.price < 2000 %}
Deal of the day
{% endif %}contains
Checks for a substring in a string, or a string in an array of strings. It does not work on arrays of objects.
{% if product.tags contains 'sale' %}On sale{% endif %}Shopify stores that convert, rank higher, scale and sell more.
Builds, SEO and CRO from a Shopify Plus partner team.
Monthly send · Unsubscribe any time · Privacy policy
Shopify experts
Let's talk ecommerce, Shopify & Shopify Plus solutions.
DROPSHIP HUBS helps ecommerce brands build, improve, and grow Shopify stores. We support new builds, migrations, ongoing development, SEO, and conversion optimisation.
Our team can help plan the right approach based on your store, goals, and current challenges.
Get in touch




