Logic Gates? (And, Nor, NAND, NOR etc.)

TheJamsh's icon

Hi all

How can I create Logic Gates inside of max? All I want to do is check to see if three separate numbers are equal to '1', or true, and if they are send a bang out. Don't really understand why it's taking me so long to find an answer to this...

Cheers

chrisoconnor's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Something like this?

Floating Point's icon

or all in one box: [if ($f1 == 1)&&($f2 == 1) &&($f3 == 1) then bang] although maybe more appropriate to use $i instead of $f

chrisoconnor's icon

Didn't know you could put multiple logic operands in the if object! Always thought it was a downfall... Nice one terry!

Floating Point's icon

I don't think i realised either until after using max for a number of years....

TheJamsh's icon

Stunning, thanks guys. I managed to get it working with a series of If statements and additions, but this way allows me to slim it down some more. Cheers :)