If / Condition

logic_if · logic · Logic & Flow · Available · v2.0.0

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).

⚙️ Configuration parameters

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

FieldTypeRequiredDefaultDescription
conditionRules
Condizioni (visual builder)
condition-rulesnoBuilder 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.
condition
Condizione (espressione libera)
expressionno
input.status === "active"
Usata SOLO se il builder visuale qui sopra è vuoto. Espressione JS che ritorna true/false. Variabili: input, output, ctx, vars.
engine
Motore di valutazione (espressione)
enum
interpretersandbox
nointerpreterinterpreter = veloce (Function() con denylist). sandbox = isolato (isolated-vm), più lento ma più sicuro. Usato solo per l'espressione libera.

⬆️ Node output

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

  • true
  • false

💡 Configuration example

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

🔗 Related nodes in the same category

Ready to use If / Condition?

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

Start freeBrowse all nodes