Is it possible to route data in PD using [route] or similar object in the same way you might in a programming language? I meant conditional routing, like where you might use if-then-else statements in programming.
In the same way the following code can be used with route:
if($variable='alpha'){
print 'cheese'
} else {
print 'goat'
}
...would be something like this in PD:
[alpha( [beta(
| /
[route alpha]
| \
[cheese( [goat(
\ /
[print]
I want to be able to do this psuedo code with PD objects:
if(10<$variable<20){
print 'between 10 and 20'
//do exiting stuff here
} else {
print 'outside range'
//do something else here
}
I have investigated using PDJ (Java in Pure Data) which I would like to avoid since if it is possible to do this in PD, then it makes more sense to do it there.