Construct an array from one or more inputs of any type, with options for flattening and merging arrays
Flatten
setting.
By default, inputs will be flattened, so if any of the inputs are arrays themselves, they will be merged into the output array. This behavior can be disabled by unchecking the Flatten
setting.
"Hello"
, "World"
, and "!"
to Input 1
, Input 2
, and Input 3
of the Array Block respectively.Output
of the Array Block will be ["Hello", "World", "!"]
.
["One", "Two"]
and ["Three", "Four"]
to Input 1
and Input 2
of the Array Block.Flatten
setting.Output
of the Array Block will be ["One", "Two", "Three", "Four"]
.
["Apple", "Banana", "Cherry"]
."[{{index}}] - {{fruit}}"
.Output
of the Array Block to the Fruit
input of the Text Block.Indices
output of the Array Block to the Index
input of the Text Block.Split
setting on the Text Block.Output
of the Text Block will be ["[0] - Apple", "[1] - Banana", "[2] - Cherry"]
.
Flatten
setting treats each element of an array input as a separate element to be added to the main array. The Deep
setting recursively flattens all array inputs.
What happens if I connect a non-array block to the Array Block?
Can I connect an Array Block to another Array Block?
Flatten
is enabled, each element of the input array will be treated as a separate element. If disabled, the input array will be added as a single element.What happens if an input is missing or null?