Thank you very much!<br><br>But what if I want to make a toggle switch whitch routes things?<br>If the swith is open, things will go left,<br>If the switch is closed, things will go right ...<br><br><blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi,<br><br>&gt; If I send values in a specific range, I want them to go somewhere.<br><br>in that case it seems like [moses] is your friend.<br>You can use multiple [moses] objects to define multiple ranges to route <br>separately:<br><br>[moses 0]<br> |           |<br>[s a]    [moses 1]<br>             |            |<br>           [s b]       [s c]<br><br>Then all negative values go out the left, all positive values out the right, <br>and all zero values out the centre.<br><br>btw: if you wanted make [select] output the value, you could always store <br>the value in a [i] (or [f]) before sending to select, and have the correct <br>bang message routed to the first
 inlet of the corresponding [i].  Of course <br>this is dirty cos you need as many [i]'s as 'select' parameters!  However, <br>just about anything is possible...<br><br>Matt<br><br>-=-=-=-=-=-=-=-=-=-=-=-<br>http://www.loopit.org<br>-=-=-=-=-=-=-=-=-=-=-=-<br>----- Original Message ----- <br>From: "Tas Pas" <tprotopgr@yahoo.gr><br>To: <pd-list@iem.at><br>Sent: Wednesday, July 19, 2006 10:30 AM<br>Subject: routing in pd (was: [PD] pd if-then-else)<br><br><br>Thanks for your immediate answer.<br>The problem which occurs with [select] is that, when a match value reaches <br>[select's] inlet, [select] sends a [bang] to the corresponding outlet and <br>not the value it received and triggered the [bang].<br><br>What I want to do is to route the messages.<br>If I send values in a specific range, I want them to go somewhere.<br>If I send values beyond tha range, I want them to go somewhere else.<br>In procedural programming languages it can be done with "if-then-else" and a
 <br>variable.<br>In pd the variable is not passed by the [select] and istead a [bang] message <br>is sent.<br>Is there a way to use [select] and have the value in a outlet or something?<br><br>Thank you, and forgive me if I am writing in a confusing way.<br><br>Regards,<br><br>Terumi <br><br><br><br></pd-list@iem.at></tprotopgr@yahoo.gr></blockquote><br><p>&#32;
                <hr size=1><font size=-1 face=Arial> 
Χρησιμοποιείτε Yahoo!<br> 
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων <br> 
<a href="http://login.yahoo.com/config/mail?.intl=gr">http://login.yahoo.com/config/mail?.intl=gr</a> </font>