Description
Run the "true" branch if the condition is true, otherwise "false". Use the visual builder (multi-rule with AND/OR and per-type operators) or a free JavaScript expression (back-compat).
logic_if · logic · Logic & Flow · Available · v2.0.0
Run the "true" branch if the condition is true, otherwise "false". Use the visual builder (multi-rule with AND/OR and per-type operators) or a free JavaScript expression (back-compat).
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
conditionRulesCondizioni (visual builder) | condition-rules | no | — | Builder visuale: aggiungi regole con operando di sinistra, operatore, valore di destra. AND/OR fra le regole. Operatori per tipo: stringa (contains/regex/...), numero (gt/lt/between), data (before/after), boolean (is-true/is-false), generico (exists). Se vuoto, viene usata l'espressione "Condizione (espressione libera)" qui sotto. |
conditionCondizione (espressione libera) | expression | no | — input.status === "active" | Usata SOLO se il builder visuale qui sopra è vuoto. Espressione JS che ritorna true/false. Variabili: input, output, ctx, vars. |
engineMotore di valutazione (espressione) | enuminterpretersandbox | no | interpreter | interpreter = veloce (Function() con denylist). sandbox = isolato (isolated-vm), più lento ma più sicuro. Usato solo per l'espressione libera. |
Fields available to downstream nodes via $node.<alias>.json.<field>:
truefalseJSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.
{
"id": "node-logic_if-1",
"defId": "logic_if",
"label": "If / Condition",
"config": {
"engine": "interpreter"
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes