List.filter filter numbers

How can I filter out the integers in the list with the following scheme:
I don’t understand what the input needs to be for the condition node. List.removeifnot can only be used to filter out strings?

1 Like

@kboschJGDNZ ,

i like group by function!


KR
Andreas

3 Likes

Great thanks! That did the trick.

1 Like

Beware that the order could change because it sorts and groups by the first occurences of that key in your input.

You should use List.RemoveIfNot and use the exact string the object.type node shows as the type for an integer

3 Likes

@kboschJGDNZ , @Daan

thats fine!

What needs to be inserted in the code block when you need the integers instead?

Something like this ?

2 Likes

Yeah that’s exactly what I was looking for!

@kboschJGDNZ ,

:wink:

1 Like