Conditional visibility

Show or hide any element based on CMS values or other variables.

The Conditions section in an element's Advanced panel holds a list of visibility rules (variable, operator, compare value). If any rule fails, the element is not rendered at all. This works inside CMS lists too, so each item can show or hide parts based on its own fields.

How it works

  • Operators: Equals, Not Equals, Identical, Not Identical, Empty, Not Empty, Null, Not Null, Truthy, Falsy, True, Not True, False, Not False, Higher Than, Higher Equal Than, Less Than, Less Equal Than, Contains, Contains Any, Not Contains, Not Contains Any.
  • All rules must pass (AND).
  • Hidden elements are left out of the HTML, not hidden with CSS.

When to use it

  • Show a Sale badge only when on-sale is true
  • Hide the author block when no author is set

Limitations

  • AND only; no OR groups

Availability

  • Works in Designer.
  • Included in every plan.

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.