{% when %} can have multiple cases

This commit is contained in:
EricFromCanada
2021-04-22 17:19:13 -04:00
parent d4222ff2b6
commit 9e0dc135ca
+1 -1
View File
@@ -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