stupid question

Filoo's icon

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

ujif's icon

[sel 255]

1st Creative Solutions's icon

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
www.1stcreativesolutions.co.uk