Questions tagged [switch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
1 answer
2k views

"A" or "B" in switch statements?

Is it possible to provide different possible values per case? I've tried the following formats without success. {% case "A" or "B" or "C" %} {# run this if case matches A or B or C #} I saw this ...
user avatar
  • 1,369
2 votes
1 answer
238 views

How do you use a Matrix to toggle between multiple fields from multiple blocks?

I have 1 Matrix field: contentBlock With 2 Block types: text photo With nested fields: text -> text photo -> photo My attempt at using if statements, which didn't work, to toggle between text and ...
user avatar