latest
List
Replace Items

Replace certain items in a list

ID

662ae5a310b6cb87640c918d

Name

Replace Items

Group

List

Package

List

Keywords

item
replace
index

List

Sequence

Set

Tree

Creation method

There are two options for creating a Replace Items node.

  • The first way to create a Replace Items node using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need, or words associated with this node.
    • item , replace , index
  • The second way is to select a Replace Items node from the menu that opens from the top left.
    • Menu > List > List > Replace Items

Steps

  • Create a Replace Items node.
  • Connect the list you want to modify to the first port of the node.
  • Connect the items that will replace the existing ones to the second port.
  • Connect the corresponding replacing indices for each item to the third port.

Once you have set up the node, make sure to connect the list you want to modify to the first port. Connect the replacement items to the second port and the corresponding replacing indices for each item to the third port. The resulting output will be the modified list with the replaced values.

See also

Insert List Items
Trim List
Reverse List

Inputs

NameTypeDescriptionDefault Value
list
Any
List to modify
items
Any
Items to replace with
indices
Number
Replacement indices for each item

Outputs

NameTypeDescription
replacedList
Any
List with inserted values