or
or(
expression: any
)
Returns the logical disjunction of the Boolean-converted input and a secondary predicate expression. Null-like and unconvertible values convert to false; zero converts to false; nonzero numbers and recognized true text convert to true. Evaluates the secondary expression only when the converted input is false.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
expression | any | Yes | Specifies the secondary predicate expression evaluated when the converted input is false. |
Argument evaluation
expression: Evaluated only when the incoming value converts to false. References use their enclosing context; open predicate expressions use the current evaluation value.
Examples
#true | or(add(1)) → #true
Kind: Predicate
Scope: boolean
Aliases: None