Forums > MaxMSP

If, then, else

April 5, 2012 | 12:40 am

Hi patchers

Im new in max and i need help, i worked before in Visual basic, and i need help with the conditions or the If’s

For a example:
in basic i do a condition this way:

if var1, var2, var3=1 then
var4=1
else
var4=0
endif

the 1 and the 0 in this case is for a LED in max.
If the leds 1,2 and 3 are activated then
led4 will be activated
else
led4 is disable
endif

please, i tried a lot on max, but cant find the way to do this simple if.

i need help…



MJ
April 5, 2012 | 12:57 am

like this?

– Pasted Max Patch, click to expand. –

April 5, 2012 | 1:02 am

or a more literal way:

– Pasted Max Patch, click to expand. –

April 5, 2012 | 1:18 am

woot, thats perfect :D

Thanks to both of you :D
looking foward to learn them on my own

Thanks
Keep Patching


April 5, 2012 | 2:03 am


Viewing 5 posts - 1 through 5 (of 5 total)