Shopify 如果标签不包含

nas*_*sty 2 smarty shopify

containsShopify Liquid Smarty 标签的反面是什么?

我基本上想从带有标签的搜索页面中隐藏产品hideme

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

Dav*_*zar 5

{% if %} 的反义词是 {% until %} 所以你的代码会变成:

{% unless product.tags contains 'hideme' %}
     <blinky> stuff mmm good for cookie monster </blinky>
{% endunless %}
Run Code Online (Sandbox Code Playgroud)