Culling from list based on value

Hello everyone, I am new to Grasshopper and would appreciate a few ideas about accomplishing the task described below.

I’d like to cull from each branch any items which do not have a value of 0 or Pi. I imagine this is pretty simple, but it does have me scratching my head…


One way:

Thank you for the demonstration Adam. Of course it all comes down to the logic gates! Something I never paid enough attention to in university… It’s never too late though