• ### Question about Splitting numbers?????

Please bare with me as i try to explain..
I want to send bangs to different places if two arguments are true... how would i implement this.
e.g 2 number boxes next to each other
if the first number is 20 and the second number is between 30 and 20
it will send a bang or let these numbers through.

i will appreciate your help dearly

• Posts 5 | Views 1953

It's all about comparisons. You compare the first number with 20 and check if they're equal, and the second with 20 and 30, and check if it's greater than the first and smaller than the second. Boolean AND (&&) is what you actually need here, if I got what you want to do..

• OMG Thank you so much
I was cracking my brain,
i was using spigot, select, and moses objects to try to achieve this lol

The Patch helped a lot also

I have one question about the patch

what does the && object do.
i looked at help but i still don't get it.
what function in human language does it serve?

• @jjegede01 [&&] is simply a binary operator that outputs a 1 if both inputs receive a non-zero number, or a zero if any of the inputs receives a zero. In the Help file, make sure to go down to [pd understanding_&&_logical-AND] and you'll see a bit more detail.

• @rjp9 said:

pd understanding_&&_logical-AND

I see
now i understand what the help is saying
by changing the right and left input ....
Its nice that the help in pd is interactive

Thank you

Posts 5 | Views 1953
Internal error.

Oops! Looks like something went wrong!