Mar 25, 2011 at 10:11am
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?
Mar 25, 2011 at 10:31am
Mar 27, 2011 at 2:24pm
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:
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,
You must be logged in to reply to this topic.