Skip to content

Combine

Overview

The Combine node merges multiple inputs into a single output based on input priority. It is typically used to consolidate data from different branches of a flow into a single stream.

Use Combine when:

  • You have multiple possible data sources and want to pass through the first active one.
  • You need to prioritize one input path over others.
  • You have filtered the flow values and want the default value to be displayed on the dashboard instead.

💡 Tip

Priority is determined by input order: input_1 has the highest priority, followed by input_2, and so on.

Inputs

NameTypeDescription
input_NanyDynamic list of inputs. input_1 has the highest priority.

Outputs

NameTypeDescription
outputanyReturns the value from the highest-priority active input.

Parameters

ParameterDefaultValid valuesTunable
Number of inputs2bigger or equal to 2

Number of inputs

The total number of available inputs to be prioritized.

Example

Input Prioritization

You have two sensors detecting an object. Sensor A (input_1) is more precise than Sensor B (input_2). You want to use Sensor A's data whenever available.

Configuration:

  • Number of inputs: 2

Result: If Sensor A provides data, it is passed to the output. Sensor B's data is only output if Sensor A has no data.

Reference: