Nodes
Concat#
The Concat node combines three input arrays into a single output array in the order the inputs are provided.
Inputs#
a
(array): The first array to concatenate. Default value is an empty array.b
(array): The second array to concatenate. Default value is an empty array.c
(array): The third array to concatenate. Default value is an empty array.
Outputs#
result
(array): The array resulting from concatenating thea
,b
, andc
input arrays in order.
Configuration#
This node has no configuration options.
Usage#
To use the Concat node:
- Add the Concat node to your spell.
- Connect arrays to the
a
,b
, andc
input ports as desired. Any or all of the inputs can be left empty. - The concatenated array will be output from the
result
port.
Example#
Let's say you have three separate arrays with names, job titles, and departments in your company directory:
Connecting these to the a
, b
, and c
inputs of the Concat node will output:
Best Practices#
- The order of the concatenated arrays will match the order of the inputs. Put the arrays in the desired sequence.
- It's not required to connect arrays to all three inputs. Any empty inputs will simply be ignored.
- The input arrays don't need to be the same length. The output will contain all elements from each.
Common Pitfalls#
- Be cautious of accidentally duplicating data if the same array is connected to multiple inputs.
- Note that this node does not do any sort of merging of the arrays. The output is a simple concatenation.