Shopify 如果标签不包含

Shopify If Tag does not contain

Shopify Liquid Smarty 标签中 contains 的反义词是什么?

我基本上想隐藏带有标签 hideme

搜索页面 中的产品

示例代码:{% if product.tags contains 'hideme' %}。在此我想使用 does not contain 而不是 contains

{% if %} 的反义词是 {% unless %} 因此您的代码将更改为:

{% unless product.tags contains 'hideme' %}
     <blinky> stuff mmm good for cookie monster </blinky>
{% endunless %}