List and sub list

Hi guys

is there is way to make the code work based in the list count for example if I have same in the picture below.

Instead of repeating the nodes two times, is there way to make code work based on the list count, I hope u understand my point. and just to know I don’t want flatten the list because I want study each sub-list alone.

Thank you

Hi @Mohammad_Nawar ,
try setting the lacing of element.location to longest:

1 Like

Hi @Mohammad_Nawar

?

Hi @Kulkul

If there is way instead I put List[0] then list[1], to be like List[x] and x based on the number of sub-list and have the output as u did, 3 outputs ??

Could you draw or make some hand sketch and drop it here?

@Kulkul

check that one

Now, Assume I have 100 sub-list I can’t create the nodes 100 time to make the desire, as u see in the picture. you got my point ?

Hi @Vikram_Subbaiah

PLEASE CHECK THE LAST COMMENT FOR ME, TO GET MY POINT

THANK YOU

Instead of extracting sublists just feed the whole list in the node you want, changing its lacing to longest (right click on the node)

1 Like

@GregX

Thank you man, you got my point and know it’s working

Thanks but it’s actually what @Mostafa_El_Ayoubi told you in the first reply :slight_smile: Have a nice day!

1 Like

@Mostafa_El_Ayoubi

Sry man I just know saw ur comment, and it’s solved my problem thanks a lot man.

@GregX

Just now saw his comment, but also thank you for your ur replay. :slight_smile: