Routes the value to one of the output ports (based on index, relay)
Summary (oneliner)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Caniuse query
Inputs
Controls to which output port the value is routed
The value to be routed to one of the output ports
The default value for all ports
Reset inactive ports to default value
Outputs
RouteNumber Example
The SimpleAnim
op outputs a steady signal (in this case between 0 and 1).
We connect this to the Value
port of the RouteNumber
op, this is our signal we want to route to one of the three shapes.
The Index
port of the ValueRouter
op is connected to the Incrementor
op, so it is either 0, 1 or 2, depending how often we clicked.
Click anywhere in the patch area and press the f
key to enable Flow Mode. Now click back in the canvas (a few times) and you should see how the flow of value coming out of SimpleAnim
changes depending on how often we clicked – it goes to either the Rectangle
, the Circle
, or the Triangle
op.