Supportlogo-header

04:06PM, Oct 02, 2006

HunkyBill Member

Liquid Logic Question

Hi,

{% if CONDITION A %}
{% elseif CONDITION B %}
{% else %}
{% endif %}

is nice and works. Can we use any kind of simple Logic in an if? Like

{% if CONDITION A or CONDITION B %}.....

It would help to keep the scripts smaller….

Thanks

07:12PM, Oct 02, 2006

tobi Shopify

Not yet. I think the mephisto team might be working on proper boolean expressions for liquid though. It would definitely be a nice addition.

Tobias Lütke - Shopify CEO // http://twitter.com/tobi

login or Sign up for an account to reply.