Conditional styling and visibility
Templates can react to the data they show: an object can appear only when a field has a value, a score can turn green when the home team leads, a flag can change with the country. There are three building blocks.
1. Show only when a field has a value
Every object type — including groups — has Show only when field has a value in the Data tab. Bind it to a field, and the object is hidden on air when that field is:
- empty, or
false(a Boolean field that is off, or the textfalse).
Any other value shows the object. Use it for a "LIVE" badge, an optional sponsor logo, or a whole group such as a substitution panel.
Hidden objects inside a group with Auto layout take no space, so the remaining objects close the gap. See Auto layout.
2. Visibility and hide-when-empty
- Visibility binds to a Boolean field: true shows the object, false makes it invisible.
- Hide object when value is empty (on by default) hides a text, image or icon whose own bound value is empty.
3. Conditional rules on schema fields
To drive colors, images or text from other values, let the data compute them. In the project's Data section, open a schema field and add Conditional Rules: each rule reads IF field operator value THEN result. Operators are =, ≠, contains, excludes, >, <, ≥ and ≤. The first rule that matches sets the field's value. A field with rules is read-only.
Then bind the object's property to that computed field:
- A Color field with rules → bind Text color, Background, Border color or Icon color.
- An Image field with rules → bind Image source (for example a flag per country).
- A Boolean or Text field with rules → bind Visibility or Show only when field has a value.
Example — status color: add a Color field status_color with the rules IF status = Live THEN green, and IF status = Final THEN red. Bind the status plate's Background to status_color. When the operator changes the status, the plate changes color.
See Conditional rules in the Data section for the details of writing rules.
Next
- Binding an object to data — the full list of bindable properties.
- Previewing bound values — check that the rules produce the look you expect.