{"title":"Render conditional content using Liquid","slug":"liquid-how-to-showing-conditional-content","url":"https://support.storeconnect.com/articles/liquid-how-to-showing-conditional-content","url_markdown":"https://support.storeconnect.com/articles/liquid-how-to-showing-conditional-content.md","subtitle":null,"summary":"Show or hide content dynamically using Liquid tags like current_store, current_customer, current_account, and current_membership to personalise pages based on who is viewing them.","type":"Help_Documentation","video_url":"","keywords":"liquid, conditional content, show hide content, current_store, current_customer, current_account, current_membership, personalisation, dynamic content, liquid tags, membership-based content, store design","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"This feature allows you to dynamically present relevant information to enhance user engagement, relevance, and satisfaction. Here are the tags you use to set up conditional content.\n\n## How to show and hide conditional content on your site\n\n### Current\\_store\n\nDisplay content based on the current store.\n\n\n```\n{% if current_store.code == 'dog-store' %}\n  The {{ current_store.name }} is the best for dogs\n{% elsif current_store.code == 'cat-store' %}\n  The {{ current_store.name }} is the best for cats\n{% endif %}\n```\n\n\n### Current\\_customer\n\nDisplay or hide content based on the customer who is signed in.\n\n\n```\n{% if current_customer %}\n  Hi {{ current_customer.firstname }}!\n  Your email address is {{ current_customer.email }}\n  Your account name is {{ current_customer.account.name }}\n{% endif %}\n```\n\n\n### Current\\_account\n\nDisplay or hide content for a particular account.\n\n\n```\n{% if current_account %}\n  Hi {{ current_account.firstname }}!\n  Your email address is {{ current_account.email }}\n  Your account name is {{ current_account.account.name }}\n{% endif %}\n```\n\n\n### Current\\_membership\n\nDisplay content based on the membership level of person signed in.\n\n\n```\n{% if current_membership %}\n{% if current_membership.name == 'VIP' %}\n  Welcome back!\n{% endif %}\n```\n"}