{%- set has_else = "else" in property -%}

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 = current_id ~ "__if" -%}
{%- set current_path = current_path ~ "/if" -%} {{ content(tab_id, tab_label ~ " if", property["if"], property_path, current_path, True) }}
{%- set tab_id = current_id ~ "__then" -%}
{%- set current_path = current_path ~ "/then" -%} {{ content(tab_id, tab_label ~ " then", property["then"], property_path, current_path, True) }}
{%- if has_else -%} {%- set tab_id = current_id ~ "__else" -%}
{%- set current_path = current_path ~ "/else" -%} {{ content(tab_id, tab_label ~ " else", property["else"], property_path, current_path, True) }}
{%- endif -%}