{% assign vip_customer = false %} {% if customer %} {% for tag in customer.tags %} {% if tag == 'VIP' %} {% assign vip_customer = true %} {% endif %} {% endfor %} {% endif %} {% if vip_customer %} <a href="/pages/secret-link">Secret Link</a> {% endif %}