How can I say if it does not contain anything?

YerayLg
Tourist
9 0 0

These are my piece of code and I want to say if you are in this collection and there aren't any tag do this but if there are any tag do another thing.

 

 

 

 

 

{% if collection.handle == 'gafas-de-sol' and collection.tags contains %}
<option value="/collections/{{ collection.handle }} / {{ tag | handle }}">{{ tag }}</option>
{% else %}

{% endif %}

 

 

 

 

0 Likes