vlada car wrote:
hi, can anyone tell me what help file i should use to find out something about 'if' statements for PD. i am getting some data via tcp and would need to use that in pd. the print output looks like this:
tcp: 19:44:45 e
tcp: 19:44:45 r
tcp: 19:44:45 n
tcp: 19:44:45 b
and i need to use letters e r n b as numbers or as a bang function. so these buttons( e r n b ) will trigger some processes.
apologize, I forgot the attachment
one solution can be
|netreceive| | |unpack s s| | | |set $1( |select e r n b| | | | |
Lazzaro
#N canvas 269 101 714 552 12; #X obj 106 22 netreceive 3337; #X msg 106 233 set $1; #X obj 181 119 select e r n b; #X obj 181 168 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 207 170 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 234 169 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 261 170 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 106 73 unpack s s; #X msg 106 277; #X connect 0 0 7 0; #X connect 1 0 8 0; #X connect 2 0 3 0; #X connect 2 1 4 0; #X connect 2 2 5 0; #X connect 2 3 6 0; #X connect 7 0 1 0; #X connect 7 1 2 0;