{% 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 %}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter