If Statement based on Product SKUs

Highlighted
Shopify Partner
27 0 2

In my cart, I'm trying to check whether or not any product SKUs contain a string "ABC", and if so - to include my snippet. 

I'm here:

{% for item in cart.items %}
{% if forloop %}
    {% if product.variant.sku contains ‘HWN’ %}
        {% include ‘handwritten-note’ %} 
   {% endif %}
{% endif %}
{% endfor %}  
0 Likes