mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
{% when %} can have multiple cases
This commit is contained in:
@@ -86,7 +86,7 @@ Creates a switch statement to compare a variable with different values. `case` i
|
|||||||
{% case handle %}
|
{% case handle %}
|
||||||
{% when "cake" %}
|
{% when "cake" %}
|
||||||
This is a cake
|
This is a cake
|
||||||
{% when "cookie" %}
|
{% when "cookie", "biscuit" %}
|
||||||
This is a cookie
|
This is a cookie
|
||||||
{% else %}
|
{% else %}
|
||||||
This is not a cake nor a cookie
|
This is not a cake nor a cookie
|
||||||
|
|||||||
Reference in New Issue
Block a user