Getting one list instead of all. #nested list issue

Hello,
What do I do get all the 347 item in If node below. As I’m only getting 6.

Hi, I am not sure what the goal is. I recommend to have same list and sublist structure.

Yah, that works but I want to it to have the structure of the list with surfaces, I need to sum those surfaces after that.

If statement will take the shortest list, @GavinCrump wrote a node i think called “If then else” or something similar.

His package is called “Crumple” in the pacakge manager.

1 Like

In essence it just uses below code, where the 3 inputs into Python are:

  • True or false
  • Result if true
  • Result if false
if IN[0]:
	OUT = IN[1]
else
	OUT = IN[2]