Primitive
logic.if
BETAShort name: if
Version: 1.0.0
Pick thenValue or elseValue based on condition truthiness.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| condition | any | true | Condition value. |
| elseValue | any | false | Value returned when condition is falsy. Defaults to null. |
| thenValue | any | true | Value returned when condition is truthy. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| result | any | false | Selected output value. |