Skip to main content

Variable

Uncontrolled node

Overview​

Read a named value from the workflow.

Variable reads a value previously saved with Set Variable. Use it to retrieve counters, intermediate results or shared configuration.

It is evaluated when a downstream node needs its value; no event trigger is required. Make sure the event path has reached Set Variable before running the action that reads it.

Inputs​

InputTypeDescription
nameTextThe variable name or path to read.
DynamicDataAdditional sockets created by placeholders in the name.

Outputs​

OutputTypeDescription
valueDataThe stored value. If a supplied name cannot be found, returns the text "undefined", not an empty list or null.

Always provide a name. Use If or an explicit comparison when a missing value needs its own handling.

Names and paths​

  • counter reads a whole variable.
  • customer.profile.name reads a nested property.
  • items.0 reads the first item of a stored list.
  • item_{{id}} constructs a name using the connected id input.

To read a variable called counter, enter counter, not {{counter}}. Placeholders construct a variable name from another value.

Scope and lifetime​

The node looks in the current workflow's local scope first, then in the top-level shared scope. A local value with the same name takes precedence.

Variables are working state, not project-wide storage. A normal new workflow run starts fresh; use a database or library file to retain information between separate runs.

Example​

After Set Variable stores {"name":"Ada","status":"ready"} under customer, set Variable's name to customer.status. Its value is "ready", which you can compare or include in a message.