logical or
This block is part of the number group and was last modified in core v13.0.8.
logical or v13.0.8 will return the second number if the first is empty.
In pins 2
- first required
number - second required
number
Out pins 1
- number
number
Outputs the first pin unless it is numerically falsy (exactly nil, 0, or NaN), in which case the second pin, then the first non-falsy number_extended_* pin when extended pins exist. Only numbers can be falsy: strings and booleans : even "" or false : are never treated as empty and pass through unchanged. Example: first=0 second=42 -> 42; first="" second=42 -> "".
empty |
A typical wiring for logical or: number feeds the first pin; number feeds the second pin; the number out pin feeds >=.
Commonly used with
In production blueprints, this block is most often wired together with:
- number: feeds into this block. Generates a valid number from the filled custom value in the blueprint.
- get fields: feeds into this block. Gets the selected fields from the given object.
- >=: this block feeds into it. returns true if the number is higher or equal.
- plus hours: this block feeds into it. Plus an selected amount of hours to your given date.
- set fields: this block feeds into it. Generates an array of mutations based on the given filled fields.
Version history
Introduced in v13.0.8.
Back to
number Return to the main group to view all sub-groups Back to expressions Return to the group to view all blocks within this group 