{% assign found = false %} {% for c in product.collections %} {% if c.handle == "secret-sauce" %} {% assign found = true %} {% endif %} {% endfor %} {% if found == true %} <h1>You found the secret sauce!</h1> {% 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