Fork me on GitHub


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.

Pipescript’s 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 else:

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.

Transform Details

One-To-OneStatelessPeekInput SchemaOutput Schema


1The statement to check for truthFalseFalseFalse
2pipe to run if conditional is trueFalseFalseTrue
3Pipe to run if conditional is falseTrueFalseTrueNone

This Site


ConnectorDB is a very new open-source project. If you are a designer/developer or ML enthusiast, head on over to the connectordb github, where you can choose which part of ConnectorDB you want to contribute towards! Pull requests or bug reports are welcome!