List.Clean


#1

I have a question about List.Clean. I use it as shown below, but the output still contains a null value.

Am I missing something here? I expected the list to be returned with one less value, having place 52 removed completely.

Thank you in advance for any feedback.


#2

Hi Justin, See below different types of nodes that can remove null values.


#3


#4

Thank you! I needed to change the preserve indices boolean to false.


#5

You can also use DesignScript to achieve this as follows:

I’m not entirely sure if this is base functionality or a little nest egg input by Nate in Lunchbox :slight_smile:

 


#6

sweet!

I do not have LunchBox installed so it would appear to be Dynamo base functionality. Having said that, the action is not highlight in blue as shown in your image, which kind of throws me out a bit.

but it works! i was having difficulties with List.Clean method, for some reason it didn’t seem to work within the Imperative block…