Combine List - SubList

I’m trying to connect values from list [1,2,3,4] to “true” values in SubList For example Value - “1” write in true value in Sublist 0 . With Dynamo Nodes it would be a lot of work in case i have much more elements in list and Sublist and Elements in each.

 

combine_list

You can definitely solve this with nodes, however you’ll need to wrap the “ReplaceByCondition” node inside a CN - it’s one of the few nodes that refuse to act as a function, for some reason:

graph:

custom node:

2015-11-25_09-51-12