case
Chooses a branch by value.
Syntax
Section titled “Syntax”{% case value %}{% when a, b %}…{% else %}…{% endcase %}Example
Section titled “Example”{% case product.type %}{% when 'Abayas', 'Kaftans' %}Modest wear{% when 'Fragrance' %}Oud and perfume{% else %}Other{% endcase %}Modest wearRelated
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

