Skip to main content

Insert

Insert an item to a list

Holly Conrad Smith avatar
Written by Holly Conrad Smith
Updated over 2 weeks ago

Category: Lists Kind: Operation Tags: Add, Insert, Push Description: Insert an item to a list

Inputs

Name

Abbreviation

Type

Access

Description

List

L

Any

List

The list to insert to

Item

I

Any

Item

The item to insert

Index

I

Number

Item

The index to insert at

Outputs

Name

Abbreviation

Type

Access

Description

List

L

Any

List

The list with the item inserted

How to

  1. Feed in a list

  2. Feed in the item to insert

    This can be any data type (String, Number, Object, Boolean, etc)

    However, for best results, the object type and formatting should match the other items in the list.

    This allows you to continue to process the list as a group using the same nodes without causing. errors

  3. Feed in the index of where to insert the item.

    You can type a number into the box. The default is 0 (first position).

    You can use any numerical node

  4. The result is the list with the inserted item

Did this answer your question?