PATCH: Update "case" statement to allow for multiple values in "when"

25 views
Skip to first unread message

Eric

unread,
Apr 30, 2007, 5:51:26 PM4/30/07
to Liquid Templates
I have submitted a patch at http://home.leetsoft.com/liquid/ticket/382
in response to a conversation on the Shopify forums at
http://forums.shopify.com/categories/1/posts/5994 asking for a way to
specify multiple conditions in the same "when" statement.

The example used in the forum was:

{% case product.title %}
{% when "product A" or "product B"}
woo hoo, it works... :)
{% endcase%}

Tobias Lütke

unread,
Apr 30, 2007, 5:53:56 PM4/30/07
to liquid-t...@googlegroups.com
Thanks eric. I applied it and updated shopify.


--
Tobi
http://shopify.com - modern e-commerce software
http://typo.leetsoft.com - Open source weblog engine
http://blog.leetsoft.com - Technical weblog

Reply all
Reply to author
Forward
0 new messages