logical or
This block is part of the value group and was last modified in core v13.0.8.
logical or v13.0.8 will return the first truthy value, checking first, then second, then any extended pins. Falsy means null, false, 0, NaN or an empty string, so first being 0 or false also falls through.
- first required
value - second required
value
- value
value
Outputs the FIRST JS-truthy value among first, second, then any value_extended_* pins in alphabetical pin-name order. Falsy means nil, false, 0, NaN, or "" -- so first=0 or first=false falls through to second, not just missing values. When every input is falsy the output is the second pin's (falsy) value, not nil.
empty |
first defined |
A typical wiring for logical OR: value feeds the first pin; custom field feeds the second pin; the value out pin feeds convert to uppercase.
Commonly used with
In production blueprints, this block is most often wired together with:
- get fields: feeds into this block. Gets the selected fields from the given object.
- value: feeds into this block. Simply returns the provided value.
- dynamic value: this block feeds into it. Returns the provided value with support for dynamic inpins using {name:type} placeholders — the pin's name first, then its type, e.g. {guid:value}.
- custom field: feeds into this block. get the value of a custom field with a custom value block, or dynamic value.
- new object: this block feeds into it. Builds a new object filled with the given fields.
- execute: this block feeds into it. Executes the given funcion and waits for it to be executed.
Version history
Introduced in v13.0.8.
Back to
value Return to the main group to view all sub-groups Back to expressions Return to the group to view all blocks within this group 