Hi
I am trying to perform a query on a button to show it in the "on" position when a parameter value falls between 2 numbers.
I am using
query="video_delay & param_bigger 59 ? video_delay & param_smaller 180 ? true : false : false"
I would like the button to be on if the the value is between 60 & 179 and in my head the logic above should work but it doesn't, the button is on when the value is above 59 even when above 180, what am I missing.
Any help would be appreciated.
I am trying to perform a query on a button to show it in the "on" position when a parameter value falls between 2 numbers.
I am using
query="video_delay & param_bigger 59 ? video_delay & param_smaller 180 ? true : false : false"
I would like the button to be on if the the value is between 60 & 179 and in my head the logic above should work but it doesn't, the button is on when the value is above 59 even when above 180, what am I missing.
Any help would be appreciated.
Posté Sun 12 Jan 20 @ 5:14 pm
param_bigger can take 2 parameters (or actions with backtilts) to compare, so .. try ..
param_bigger 60 `video_delay` ? param_bigger `video_delay` 180 ? true : false
Posté Sun 12 Jan 20 @ 5:27 pm
HI
That's works a treat thanks, it's also a much neater and easier to read, way of writing the code than the syntax I was using.
That's works a treat thanks, it's also a much neater and easier to read, way of writing the code than the syntax I was using.
Posté Sun 12 Jan 20 @ 5:35 pm