{%- set has_then = "then" in keys -%} {%- set has_else = "else" in keys -%}

If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.

{% set tab_id = keys["if"].html_id %}
{{ content(keys["if"]) }}
{% if has_then %} {% set tab_id = keys["then"].html_id %}
{%- set current_path = current_path ~ "/then" -%} {{ content(keys["then"]) }}
{%- endif -%} {%- if has_else -%} {% set tab_id = keys["else"].html_id %}
{%- set current_path = current_path ~ "/else" -%} {{ content(keys["else"]) }}
{%- endif -%}