Basic Usage
Theshow_if property inside any control definition determines its visibility.
Equality
Display a control if another control’sid matches a specific value.
Inequality
Display a control if another control does NOT equal a specific value.Multiple Values
Display a control if another control’s value matches one of the items in a set.Logical Grouping
You can combine multiple conditions using AND (implicit in arrays) or OR (explicit object configuration).AND Logic (Default)
All conditions must be true for the control to display. Pass an array of condition strings.OR Logic
At least one condition must be true. Pass a configuration object withrelation: 'OR'.
Supported Operators
| Operator | Description | Example |
|---|---|---|
=== | Strict Equality | {{id}} === 'value' |
!== | Strict Inequality | {{id}} !== 'value' |
== | Equality (loose) | {{id}} == 1 |
!= | Inequality (loose) | {{id}} != 1 |
> | Greater Than | {{width}} > 100 |
>= | Greater/Equal | {{width}} >= 100 |
< | Less Than | {{width}} < 50 |
<= | Less/Equal | {{width}} <= 50 |
in | Value exists in set | {{type}} in { 'a', 'b' } |
!in | Value NOT in set | {{type}} !in { 'a', 'b' } |
contains | Array var contains value | {{tags}} contains 'new' |