How do I change items that have values 0 to 1 to null?


(Jireh Lee) #1


I want to change (not remove) values from 0 to 1 to null.
How do I do it?
Thanks!


(Michael Pryor) #2

You can use sift.


(Jireh Lee) #3

Wow. Sift works great. Thanks alot for your help! :smile:


(David Rutten) #4

Sift is pretty good for flow control. It was the last component added to do this sort of thing and in my opinion the best one. It is especially flexible when used in conjunction with Combine. You can sift data into two or more streams, do different things for each stream, then put everything back together again in the correct order.


(Michael Pryor) #5

Once sift was introduced I never used dispatch again :smiley: