Shopify If multiple tags are present - do something -


i'm trying show div if set of tags present. have working 1 tag using...

{% if collection.all_tags contains 'tag1' %}     {% endif %} 

...but want check if multiple tags present like...

{% if collection.all_tags contains 'tag1 or tag2 or tag3' %}     {% endif %} 

i can't find solution seems simple, ideas? thanks.

try this:

{% if collection.all_tags contains 'tag1' or collection.all_tags contains 'tag2' %}     {% endif %} 

see list of liquid operators here.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -