Appearance
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
| Name | Type | Description |
|---|---|---|
| input_N | any | Dynamic list of inputs. input_1 has the highest priority. |
Outputs
| Name | Type | Description |
|---|---|---|
| output | any | Returns the value from the highest-priority active input. |
Parameters
| Parameter | Default | Valid values | Tunable |
|---|---|---|---|
| Number of inputs | 2 | bigger 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.
Related links
Reference:
- Condition — routes data based on a boolean condition
- Boolean Trigger — blocks or passes data based on a trigger