Size chart only on products with tag "apparel"

Hi guys,

I would like to add a size chart to my product page, but only to apparel ones. Or let me say - I already got it there, but it’s visible on every single page, no matter if it’s apparel or digital product.

Can someone, pretty please, help me with building a simple “if” code? I need the size chart to be visible on products with tag “Apparel”. Here’s the code I need to “hide” into “IF”


                            {{ "products.product.sizeChart" | t }}
                        

Thank you so much!

{% for tag in product.tags %}
  {% if tag contains 'Apparel' %}
   Show Apparel tag text
{% endif %}
   {% endfor %}

You can use it, hope it will work. if works let me know.