Conditionals
We can do many things with streams and various data operators, but there are times when you need to perform different operations on data depending on some condition.
There are several different kinds of conditionals in Kit, but they all do the same thing: when all of their inputs are available, they fire and act as a gate. If the control input matches what the when block is expecting, then all of the other input values are passed through to their correspondoing outputs. If the control input doesn't match, all the inputs are consumed, but no output is produced.
WhenTrue
WhenFalse
This operates as described above, matching when the control input is true.
WhenFalse
WhenFalse
operates as described above, matching when the control input is false.