You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the Liquid wiki spec Liquid-For-Designers, the <CONDITION> in {% if <CONDITION> %} ... {% endif %} "should be either a normal Liquid expression or a comparison using Liquid expressions".
Does filters output belongs to Liquid expressions? For example, I want to directly check the condition using where filter in if, when exist products that "type" is "kitchen" then display.
Filters are only supported on a subset of tags (e.g. assign tag), which don't include if, for or case tags. A liquid expression refers to what would come before the pipe symbol in a variable tag (e.g. {{ some_expression | some_filters }}.
Using an assign tag is indeed the way this can be accomplished.
Hi,
From the Liquid wiki spec Liquid-For-Designers, the
<CONDITION>
in{% if <CONDITION> %} ... {% endif %}
"should be either a normal Liquid expression or a comparison using Liquid expressions".Does filters output belongs to Liquid expressions? For example, I want to directly check the condition using
where
filter inif
, when exist products that "type" is "kitchen" then display.This liquid example will always display as long as products is not empty,
where
takes no effects.Am I must to assign the filters output to an variable, then can use it in
if
,for
orcase
tags?The text was updated successfully, but these errors were encountered: