new

This block is part of the array group and was last modified in core v13.0.1.

Type Selection Required

This block requires you to select the data type you want to work with. You must manually select the type using the type selector modal. To access the modal, click the white button on the block.

Field Selection Required

This block requires field selection (in). You must manually select the fields you want to work with using the field selector modal. To access the modal, click the white button on the block.

new v13.0.1

returns a new array.

In pins 1
  • length required
    number

    Min: 0, Max: 1000. The desired length of the new array.

Out pins 1
  • Array
    array

    The newly created array.

Creates an array of exactly length elements, each set to the value of the type-selected fill pin - every element is the SAME value, not a clone. length is clamped to the range 0..1000. With no fill pin wired the elements are null.

fill

A typical wiring for new: the array out pin feeds length.

Studio canvas example for the new block: typical wiring for new.

Version history

Introduced in v13.0.1.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group