Hi guys,
Im trying to get lists by bools, the node [If] doesn’t have level options and I’ve tried this with the Logic.If node(designtech package) but couldn’t get the result that I want. Is there any other nodes or python script that I can use for this?
you can try this:
boo = IN[0]
list1 = IN[1]
list2 = IN[2]
OUT = [list1[i] if boo[i] else list2[i] for i in range(len(boo))]
1 Like