Filter: input streams based on if a list is empty/or not

Hi,
Probably a very simple question, but I cant find it:
There are 3 input lists:
List A

List B
List C

I would like to ‘toggle’ between list A and B, based on whether or not there is info present in list C.

If C is not empty --> List B
If C is empty --> List C

2020-05-22 Filter input stream based on empte ot not empty list.gh (24.4 KB)
I Tried to do it with the list length component, however when the list is empty it does not count anything.

Do you have any suggestions?

Thanks :slight_smile:

20_05_22_is_list_empty.gh (15.6 KB)

Another suggestion: 2020-05-22 Filter input stream based on empte ot not empty list_ME.gh (24.6 KB)

1 Like

Ahh nice!
Thank you👍