Hallo, Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
The if-else statements require a pair of [spigot]s and a [==].
A bit shorter, less effective and because of list-conversion not fully transparent, but still handy is this idiom:
[list prepend 0] | [route 0 1]
Send 0 and 1 to the prepend's right inlet to switch outlets. It becomes more useful with more choices.
Frank