Create a third list keeping the index of the second list

Good afternoon everyone,

My problem is the following:

I have two lists according to the image and several sub lists! my goal is to create a new list where the merging of lists 1 and 2 = “LIST 3” following the following order of “LIST 2”.

I will try to explain now I have lines linking one list to another but there is a red line there and a condition for the item of “LIST 2” not to be replaced

for example “LIST 3” should be as follows

0 List
[0]

1 List
[0]
[0]

2 List
[0]
[1] 1.8

3 List
[0] 0.7
[1]
[2]
[3]
[4]
[5]
[6]
[7] 0.7
[n] XX

Hi !
You can try this script


dictionary_replace.dyn (32.4 KB)
(it works only with lists and sub-list of the same length)

@Tiago
well…i found a very shorter solution :slight_smile:

replace.dyn (8.0 KB)

@Tiago DesignScript to your rescue!
See if this is what you need:

1 Like