Voog.com

case

If you need more than one condition you can use the case Statement:

{% case condition %}
  {% when 1 %}
    hit 1
  {% when 2 %}
    hit 2
  {% else %}
    elseblock
{% endcase %}

Example

{% case page.language_code %}
  {% when 'en' %}
    <p>This page is written in English</p>
  {% when 'et' %}
    <p>See lehekülg on eesti keeles</p>
  {% else %}
    <p>
      Don't know what the language is, really. It might be anything.
      Except English and Estonian.
    </p>
{% endcase %}