Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Query true if between number range

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

djkrysrPRO InfinityMember since 2010
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.
 

geposted Sun 12 Jan 20 @ 5:14 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
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


 

geposted Sun 12 Jan 20 @ 5:27 pm
djkrysrPRO InfinityMember since 2010
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.
 

geposted Sun 12 Jan 20 @ 5:35 pm


(Alte Themen und Foren werden automatisch geschlossen)