OR-gate possible in Max?

n871's icon

Hello everyone,

although I'm pretty sure it's possible to develop OR-gates in Max, I didn't succeed yet in making the following patch:

-2 toggles, if one of them (or both) is/are checked, a 3rd toggle should be checked. This 3rd toggle should only be unchecked (off) if BOTH initial toggles are in off-position.

Can someone help me with this?

thank you!

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.
n871's icon

Thank you Christopher!! I really should check out this trigger object..

Roman Thilenius's icon

[if $i1 || $i2 then 1 else 0] or [if ($i1*$i2)==1 then 1 else 0]

110 *hides behind some arithmetic bushes*

n871's icon

Thank you Roman, I will try this also.