Use this to provide a fallback only when a value is truly missing — for example, falling back to a default floor-to-floor height when a project hasn't set its own, without accidentally overriding a legitimate value of 0.
This is different from a plain OR check: OR treats 0, empty string, and false as "missing" and falls back too. Nullish Coalescing only falls back when "a" is exactly null or undefined — a real value of 0 or false from "a" is kept as-is.
Category: Logic
Kind: Operation
Description: Returns the first non-null/undefined value between two inputs.
Inputs
Name | Abbreviation | Type | Access | Description |
a (optional) | A | Any | Item | the first value to evaluate — if not null or undefined, this value is returned |
b (optional) | B | Any | Item | the fallback value if "a" is null or undefined |
Outputs
Name | Abbreviation | Type | Access | Description |
result | R | Any | Item | the first non-null/undefined value between the two inputs |
How to
Add the Nullish Coalescing node.
Wire your possibly-missing value into "a" and your fallback/default into "b".
The output is "a" if it's set, otherwise "b".