#N canvas 533 27 522 601 12;
#X text 271 545 updated for Pd version 0.26;
#X obj 87 163 select 1 2;
#X floatatom 87 135 0 0 0 0 - - - 0;
#X obj 87 240 print select-1;
#X obj 120 215 print select-2;
#X obj 154 190 print select-3;
#X floatatom 267 138 0 0 0 0 - - - 0;
#X obj 307 176 pack;
#X obj 307 203 route 1 2;
#X obj 307 147 t b f;
#X floatatom 307 123 0 0 0 0 - - - 0;
#X obj 367 231 unpack;
#X floatatom 307 231 0 0 0 0 - - - 0;
#X floatatom 337 231 0 0 0 0 - - - 0;
#X floatatom 367 256 0 0 0 0 - - - 0;
#X floatatom 406 256 0 0 0 0 - - - 0;
#X floatatom 185 347 0 0 0 0 - - - 0;
#X obj 185 374 spigot;
#X floatatom 185 401 0 0 0 0 - - - 0;
#X text 242 369 if open \, messages coming in at left are sent to output., f 28;
#X floatatom 119 493 0 0 0 0 - - - 0;
#X floatatom 119 549 0 0 0 0 - - - 0;
#X obj 119 521 moses 5;
#X floatatom 165 549 0 0 0 0 - - - 0;
#X text 46 20 Pd provides at least four objects for doing conditional computations. The [select] object tests its input against its argument(s) \, and outputs "bang" when they match. The [route] object works similarly but also copies data. In other words \, [route] takes a list \, tests its first element \, and conditionally passes on the rest of the list.;
#X text 44 287 You also get [spigot] which turns a flow of messages on and off (like the Gate object in Max \, but with the inputs reversed):, f 54;
#X obj 224 348 tgl 19 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000 0 1;
#X text 245 347 <-- nonzero on right inlet to open;
#X text 56 438 And finally \, [moses] sends numbers to the left if they're less than the argument \, right otherwise:, f 49;
#X connect 1 0 3 0;
#X connect 1 1 4 0;
#X connect 1 2 5 0;
#X connect 2 0 1 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 12 0;
#X connect 8 1 13 0;
#X connect 8 2 11 0;
#X connect 9 0 7 0;
#X connect 9 1 7 1;
#X connect 10 0 9 0;
#X connect 11 0 14 0;
#X connect 11 1 15 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 20 0 22 0;
#X connect 22 0 21 0;
#X connect 22 1 23 0;
#X connect 26 0 17 1;
