There are many ways to do "if" in Pd. It depends on what kind of data
you are handling. The key is to think in the Pd (Max, dataflow,
whatever) way rather than trying to cram procedural programming into a
Pd patch.
Floats:
[moses 5] = if ( x < 5) { outlet-1 } else { outlet-2 }
Symbols
[select foo] = if (x == "foo") { outlet-1 } else { outlet-2 }
There are other ways as well.
.hc
On Apr 19, 2005, at 6:10 AM, Dieter Untermieter wrote:
hi
thanks for your hints - they have been very helpful
two new problems occured now:
- is there anything like a "if"-object in pd. i think that i used such
a object in pd, but when i try to create such a object pd tells me
that there is no if object.
- and i am looking for a way to empty a list.
any hints again?
yours
NEW! Lycos Dating Search. The only place to search multiple dating
sites at once. http://datingsearch.lycos.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
"Looking at things from a more basic level, you can come up with a more
direct solution... It may sound small in theory, but it in practice, it
can change entire economies."
- Amy Smith