Skip to main content

Logic nodes

The most heterogeneous category: declaring and calling functions, requiring modules, module-load-time setup, and reading/writing named variables. See Node Categories for the color legend and main-canvas vs. Function-Graph availability rules.

NodeTypeWhat it does
Functionlogic.functionDeclares a named JavaScript function at the top level of the current file.
Handler Functionlogic.handlerFunctionDeclares a named Express request handler with fixed req, res, next parameters — the node every route needs at least one of.
Exportlogic.exportMarks which Function node(s) and/or variable(s) in this file are exported.
Requirelogic.requireImports another blueprint file's exports, or an installed npm package, exactly like Node's own require().
Function Calllogic.functionCallCalls an exported function from a Required module, or a sibling function in the same file, including recursion.
Callbacklogic.callbackCalls a wired-in function reference with however many arguments you give it.
Path Extractorlogic.pathExtractorResolves a free-form dot/bracket property path against a wired object, calling it if the resolved value is a function.
Promiselogic.promiseConstructs and handles a JavaScript Promise, awaited inline or handled via Then/Catch execution arms.
Startlogic.graphEntryFunction Graph only — the graph's entry point, never added manually.
Returnlogic.graphReturnEnds the chain it's wired into, optionally as a real early return from inside a Branch/Switch arm.
Beginlogic.beginRuns once when this file is loaded, before any request comes in.
Get Variablevariable.getReads the current value of a declared variable.
Set Variablevariable.setAssigns a new value to a declared variable, then continues to the next node.