Make array

Arrays and ranges Pure Generic
Make array
Result

Description

Pure function building an array from a dynamic list of element pins. Add and remove pins on the node; removing them all yields an empty array, which is how you make one. Generic on the element type — the first connected pin fixes it for the rest.

When to use

Use Make array to assemble a fixed set of values into an array without a Split, a parsed model, or a loop building it up. A freshly placed node starts with a single element pin — add more or remove them on the node itself to match the number of values you have. Pin order is array order: the topmost pin becomes index 0, and so on. The element type is generic and is fixed by whichever pin is connected first; every other pin then only accepts that same type. Leaving a pin unconnected does not skip it — it contributes null — so the array’s length always equals the pin count.

Make array’s second job is building an empty array, which previously had no dedicated node: remove every element pin and the Result output is an empty array. That empty array is the natural fallback for Default if null when an array-valued field might arrive as null, and it is what you pass to a function or Make node expecting an array you have nothing to put in yet. A local variable of kind Array already starts empty, so it needs no seeding — reach for Make array when you need an empty array as a value rather than as a variable.

Pins

Output pins

Pin Type Notes
Result generic[] The assembled array, one element per element pin in top-to-bottom order. An unconnected element pin contributes null, so the length always matches the pin count. Removing every element pin makes this an empty array.

Example

Build a fixed list of three recipient email addresses to loop over. Place a Make array node, add two more element pins so it has three, and type a literal address into each. Wire the Result output into the Array input of a For each loop to send a message to each address in turn.

To supply an empty array instead, place a second Make array node and remove its only element pin, leaving the Result output empty. Wire that into the Fallback pin of a Default if null so a null array-valued field reads downstream as an empty one.

See also