First Valid

action_coalesce · action · Data & Transform · Available · v1.0.0

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.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
source
Oggetto sorgente
expressionnoinputL'oggetto da cui leggere. Vuoto = usa l'input del nodo.
paths
Percorsi in ordine di priorità
chip-listyes
nickname, profilo.nome, email
Elenco ordinato di dot-path: viene scelto il primo che ha un valore.
default
Valore di default
stringnoUsato se nessuna sorgente ha un valore.
treatEmptyAsMissing
Stringa vuota = mancante
booleannotrueSalta anche i campi presenti ma vuoti ("").

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • default

💡 Configuration example

JSON 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
  }
}

🔗 Related nodes in the same category

Ready to use First Valid?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes