Liquid Logic Question

by HunkyBill - Member - 04:06PM, Oct 02, 2006

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

tobi

Shopify

07:12PM, Oct 02, 2006

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 – Founder, CEO

You must login to post a comment!

Don't have an account yet? Sign up for one.