Forums > MaxMSP

could someone explain to me how i would use an if statement using max 4.5…

Apr 13 2009 | 6:43 am

what i want to do is have it so that if the number box is equal to one it sends a bang message, if its 0 it doesn’t. is this possible in max, i presume it is.

Apr 13 2009 | 8:52 am


Have a look the [select 1] object. It does exactly what ou want.

Apr 13 2009 | 4:31 pm

thank you

Apr 14 2009 | 11:36 pm

here’s the way you’d do it with the if object, just for your reference:

if $i1==1 then bang

what’s this $i1 business?
$ < - marks beginning of input variable
i < - input variable is integer (f for float, s for symbol/string)
1 < - this argument comes in the first inlet

Apr 15 2009 | 2:41 am

this is not your fault, but this is the SIXTH question about [if] within the last 6 days.

that lowers the chance of getting answers massively.

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

Forums > MaxMSP