Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Turn the led on when eq is 0'1>
I tried to set a variable the value of the knob and then tell to the led that value and if it's lower than that to turn on but I think I wasn't able to set the variable to the value of the low knob, how can I do it?
 

Posted Fri 09 Sep 22 @ 2:45 am
Your wording doesn't make much sense.
Anyway..
Knob code: set 'MyVar'

Code to turn on the led when lower than 50%
var_smaller 'MyVar' 50% ? on : off


Code to turn on the led when greater than 50%
var_greater 'MyVar' 50% ? on : off


Code to turn on the led only when 50%
var_equal 'MyVar' 50% ? on : off


Code to turn on the led only when NOT at 50%
var_equal 'MyVar' 50% ? off : on


Code to turn on the led only when inside the 25%-75% range
var_greater 'MyVar' 25% ? var_smaller 'MyVar' 75% ? on : off : off


Code to turn on the led only when outside the 25%-75% range (0-25% & 75-100%)
var_smaller 'MyVar' 25% ? on : var_greater 'MyVar' 75% ? on : off
 

Posted Fri 09 Sep 22 @ 10:31 am