duplicate item

This block is part of the array group and was last modified in core v10.4.28.

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.

duplicate item v10.4.28

Duplicates a given item of the array.

In pins 1
  • times required
    number

    Times to duplicate the given item.

Out pins 1
  • output
    array

    Output array with the duplicated items.

Outputs an array containing the connected item repeated times times. All entries reference the SAME value, not independent copies; a times of 0 or less yields an empty array. When several item pins are connected, the last non-null one in pin order wins.

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

Studio canvas example for the duplicate item block: typical wiring for duplicate item.

Version history

Introduced in v10.4.28.


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