Description

This node enables you to add an item into an existing array.

If no array is given it will generate an array with just one item.



Properties

  • Insertion Mode : Choose how to insert the item. Choices are : At the End, At Index, Before ID, After ID
    Default : At the End
  • Trigger Input : Toggle this if you want to use a boolean as an input to trigger the action. If the boolean is True the item will be added to the array. If the boolean is False the item will not be added, or will be removed if it was present.
    Default : OFF
  • ID : Manually set the value of the ID.
    Default : empty

You can add properties and values using the button in the bottom left of the Editor panel.

Property/Value lines can be deleted by selecting them and using the icon.


Inputs

Name Type Description
Array Array Accepts an existing array to add an item to
ID String The ID to add according to the chosen Insertion Mode
Optional inputs
Trigger Boolean Only appears if Trigger Input is toggled ON. Boolean input to trigger the action of inserting an item to the array
AtIndex Integer Only appears if Insertion Mode is set to At Index. Input for the Index to insert the item at.
BeforeID String Only appears if Insertion Mode is set to Before ID. Input for the ID before which to insert the item.
AfterID String Only appears if Insertion Mode is set to After ID. Input for the ID after which to insert the item.

Outputs

Name Type Description
Array Array The array with the item inserted.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.