stupid question

Mar 25, 2011 at 10:11am

stupid question

Hello everyone, I know my question may seem stupid but I could not find anything about it, I found many guides but nothing simple to understand. what I gotta do is make sure that if one of my parameter “number”is passed a number he will recognize it and give me back a bang, so I think if $ i1 == 255 then … bang, else do nothing . how can I turn it into syntax?

thanks

#55784
Mar 25, 2011 at 10:31am

[sel 255]

#200564
Mar 27, 2011 at 2:24pm

Hi,

The syntax in an if statement has to be completely correct else it will not work.

For what you are after I think the object should read as follows:
if $i1 == 255 then 1 out1

This is provided that the number you are receiving via inlet 1 is an integer. If you are receiving a float you should adjust the first section to read “if $f1″

Hope this helps,

Regards,

1CS Support Team
support@1stcreativesolutions.co.uk
http://www.1stcreativesolutions.co.uk

#200565

You must be logged in to reply to this topic.