Type alias BindingConditional<T>

BindingConditional<T>: [operator: "if", condition: Binding<boolean>, thenBinding: Binding<T>, elseBinding: Binding<T>]

If the first parameter (boolean) is true, returns the second parameter (T), otherwise returns the third parameter (T).

Type Parameters

Remarks

The type of the second and third parameters must be the same.

Example

{
"id": "MyConfigField",
"type": "checkbox",
},
{
// ...
"visible": ["if", ["value", "MyConfigField"], true, false],
},

Since

D2RMM v1.6.0