List and item

Hello; I want someone to help me, please
In a dynamo, I found a problem, I have 2 lists; One has got 50 items and 52 items respectively or some it alternates so I have to choose always 52 items. How I have to do?

Lacing > Longest?

1 Like

but…when I choose like that, in List.LaceLongest is “null” look like this picture How?.

try this
the first list is a list of lists.
Flatten it first or choose list@level 2
second you’ll need to provide a combinator like ==

1 Like

please, some example ^^

i cant help you with an example
i don’t have Dynamo on this computer.
sorry

1 Like

your welcome, thank you so much

1 Like

i want to invite some other guys to help you out

1 Like

ok. Thak you so much

I don’t have your data set, so I cannot confirm, but I think that the reason you have 50 items in the first list is that empty lists don’t count as items.

When you replace the empty lists with an item (in your case a 0), you now have something which is counted, ergo you wind up with a larger count.

1 Like

When I replace the empty lists with number other than 0, all is the list are still ‘null’.

What lists are you referring to? I’m a bit lost here, perhaps the original question wasn’t clear.

Can you post the dyn and any other required files (Revit, excel, etc) to run it, and a an image showing the preview of what you have and markups showing what you want.

Thanks.

1 Like