PXC Documentation

PXC Home

Array Insert

1.18.0

Insert member into an array at any position.

Node Data

Display name

Array Insert

Internal name

Node_Array_Insert

Inheritances

Node_Array_Insert

Inputs

any

Array

int

Index

any

Value

bool

Spread Array

Outputs

any

Array


Insert an element into an array at a specific index.



Properties


ArrayThe array to insert the element into.
IndexThe index to insert the element at.
- If the index is negative, it will count from the end of the array.
- If the index is larger than the array length, the element will be appended to the end of the array.
ValueThe value to insert.
Spread ArrayIf the value is an array, choose whether to insert each element of the array individually, or insert the entire array as nested array.


If both Index and Value are arrays, the output will be an array with the values inserted at the specified indexes.



Commit History


1.12.0
  • Introduced

Related Links