--- title: "The Unless Tag" slug: "unless-tags-in-liquid-markup" updated: 2026-04-16T19:31:27Z published: 2026-04-16T19:31:27Z canonical: "knowledge.technolutions.net/unless-tags-in-liquid-markup" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.technolutions.net/llms.txt > Use this file to discover all available pages before exploring further. # The Unless Tag In [Liquid markup](/v1/docs/getting-started-with-liquid-markup), the `unless` tag is the functional inverse of the `if` tag: it displays content *unless* a condition evaluates as *True.* Here’s a generic example of the `unless` tag in action: ```plaintext {% unless export == condition %}    Content to display if the value is found to be false {% endunless %} ``` ## How the `unless` tag works The `unless` tag checks the specified export against the condition. - If the condition is found to be *false,* the dynamic content inside the `unless` tag is executed - If the condition is instead found to be *true,* the dynamic content is ignored. ## Examples If the recipient’s sports interest level is `Varsity`, don’t show them anything; if their interest level is some other value, show them the content: ```plaintext {% unless {{sport-interest-level}} == 'Varsity'%}    We have plenty of Club and Intramural sports that you can get involved in!    Check them out here: {{sport-link}} {% endunless %} ``` Unless an event’s location is `Slate University`, show the recipient the message “Your event is off-campus!”; otherwise, if the location is `Slate University`, don’t show them anything. ```plaintext {% unless {{event-location}} == 'Slate University' %}    Your event is off-campus! {% endunless%} ``` These examples use `==`, but you can use other [Liquid Markup comparison operators](/v1/docs/fundamental-liquid-markup-and-conditional-logic). **📖** See the [Shopify documentation on the unless tag](https://shopify.dev/docs/api/liquid/tags/unless)