if then needs a little getting used to, doesn't always work like C (i had better luck making sure $f1 variables were towards the left among other things like being explicit about everything, etc.
i'm having trouble explaining...
if you can use comparison operators, that might be more efficient but here's a little of both(you could easily rework the ifthen here for your question about outputting 1 through 4 for gate), hope it helps:
*Never fear, Noob4Life was never here!
Thank you. Very useful. But they still output bangs, how do I get from a bang to an int? And output that int only once for each range of values?
Sorry about the primitive questions, I am finding it a bit hard to get through the simplest things sometimes because I am not familiar with MAX's idiosyncrasies and the doc's examples cannot cover everyone's precise scenario...
In your example with all the >< operators, it looks like you're trying to set a range with each pair, but you have your range improperly specified.
For example, you're looking for a number that is < -5.36 AND > -2.68, which is not going to happen. If you swap the operators so that you are looking for > -5.36 AND < -2.68 you will spacify a range.