Difference between route and select

leaozinho's icon

I know this is a basic topic, but I can't really understand the difference between route and select. Does anyone have a patch or example that illustrates when to use these objects and why use one over the other?

Roman Thilenius's icon

it is hard to see the difference when you send it only a single number.

route´s key feature is to sort lists depending on their index.

send "1 2 3 4 5" into a [route 3 1 7] to see this live.

Nate S's icon

Both send output when they receive a match. Whereas route outputs a message, select outputs a bang.

annam's icon

So easy, thank you!