List-Test List Layout



this.TextOnBackground is

raw: {{this.TextOnBackground}}

IF/ELSE raw
{% if this.TextOnBackground == 'on Dark' -%}
  [liquid OnBg render]: "on Dark"
  {% assign OnBg = "onDrk" %}
{% elsif this.TextOnBackground == 'on Color1' -%}
  [liquid OnBg render]: "on Color1"
  {% assign OnBg = "onColor1" %}
{% elsif this.TextOnBackground == 'on Color2' -%}
  [liquid OnBg render]: "on Color2"
  {% assign OnBg = "onColor2" %}
{% elsif this.TextOnBackground == 'on Mix (white)' -%}
  [liquid OnBg render]: "on Mix (white)"
  {% assign OnBg = "onMix" %}
{% else -%}
  [liquid OnBg render]: "on Light" as the final "else"
  {% assign OnBg = "onLt" %}
{% endif -%}

UNLESS raw
{% unless this.TextOnBackground == 'on Dark' -%}
  [liquid OnBgUnless == render]: ERROR 'on Dark' is true. Should see the other != render
  {% assign OnBgUnless = "onOther" %}
{% endunless -%}
{% unless this.TextOnBackground != 'on Dark' -%}
  [liquid OnBgUnless != render]: CORRECT not 'on Dark' is false. Should see this render
  {% assign OnBgUnless = "onDrk" %}
{% endunless -%}