Combining complementary lists

Hi all, I have 2 complementary lists and I would like to merge the tow into one keeping the same number of items. As you can see, there are empty items in the first list that are in the second list and viceversa.
Is there a simple way to do it??

Thanks in advance

You can do something like this:

2 Likes

A more elaborate way …

thanks, thats what i needed!

1 Like

Thanks, it is really easy when you know well! :wink:

@gregoriosaura Though the code might seem intimidating at first, the proper solution is the one provided by @jostein_olsen

test (boolean) ? result, if true : result, if false

1 Like

Thanks @Vikram_Subbaiah, do you know where I could find any PDF to study some codes?

1 Like

Start with the dynamo primer. There is a section on design script and code blocks.

http://dynamoprimer.com/en/

Then look into the guide and/or user manual.

http://dynamobim.org/wp-content/links/DesignScriptGuide.pdf

http://designscript.io/DesignScript_user_manual_0.1.pdf

2 Likes