A conditional. This is what an if statement would be in other languages.
ifelse is the same type of conditional statement that you might be used to in other programming languages.
if statement is a filter, because conditionals are much less common than filters.
ifelse($ > 5, $-5)
The above will take all datapoints with data greater than 5, and decrease their value by 5. There is also an optional
ifelse($ > 5, $-3,$+2)
The above will decrease datapoints > 5 by 3, and increase all others by 2.
This permits performing conditional computation on streams.
|One-To-One||Stateless||Peek||Input Schema||Output Schema|
|1||The statement to check for truth||False||False||False|
|2||pipe to run if conditional is true||False||False||True|
|3||Pipe to run if conditional is false||True||False||True||None|