Description
Return the FIRST present value among multiple sources with a final default — the SQL COALESCE / chained ?? pattern as a foolproof node: list dot-paths in order, get the first non-empty one.
action_coalesce · action · Data & Transform · Available · v1.0.0
Return the FIRST present value among multiple sources with a final default — the SQL COALESCE / chained ?? pattern as a foolproof node: list dot-paths in order, get the first non-empty one.
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sourceOggetto sorgente | expression | no | input | L'oggetto da cui leggere. Vuoto = usa l'input del nodo. |
pathsPercorsi in ordine di priorità | chip-list | yes | — nickname, profilo.nome, email | Elenco ordinato di dot-path: viene scelto il primo che ha un valore. |
defaultValore di default | string | no | — | Usato se nessuna sorgente ha un valore. |
treatEmptyAsMissingStringa vuota = mancante | boolean | no | true | Salta anche i campi presenti ma vuoti (""). |
Fields available to downstream nodes via $node.<alias>.json.<field>:
defaultJSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.
{
"id": "node-action_coalesce-1",
"defId": "action_coalesce",
"label": "First Valid",
"config": {
"source": "input",
"paths": "nickname, profilo.nome, email",
"treatEmptyAsMissing": true
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes