Created
November 7, 2018 14:07
-
-
Save atikju/87c5fab277ba78b81df1b0a57a1e4f1e to your computer and use it in GitHub Desktop.
Shopify Switch Case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% assign handle = 'cake' %} | |
| {% case handle %} | |
| {% when 'cake' %} | |
| This is a cake | |
| {% when 'cookie' %} | |
| This is a cookie | |
| {% else %} | |
| This is not a cake nor a cookie | |
| {% endcase %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment