Quick Sign In:  

Forum: VirtualDJ Skins

Topic: Conditional syntax

This topic is old and might contain outdated or incorrect information.

GianVJPRO InfinityMember since 2012
Hello, I have a problem with this syntax:

<button Class="minicues" action="toggle '$Deck1_SV'" rightclick="Var '@$Deck1_SV' 0 ? set '$Deck1_SV' 1 & set '$Deck2_SV' 1 & set '$Deck3_SV' 1 & set '$Deck4_SV' 1 : set '$Deck1_SV' 0 & set '$Deck2_SV' 0 & set '$Deck3_SV' 0 & set '$Deck4_SV' 0">
<pos x="+712" y="+64"/>
<text dx="1" size="15" color="#70EE70" format="TEST"/>
</button>

The "action" work as expected, but "rightclick" work only in one direction: what's wrong ?

Thank You in advance for attention.
 

Posted Wed 09 Sep 15 @ 8:20 am
Try to use var_equal

rightclick="var_equal '@$Deck1_SV' 0 ? set '$Deck1_SV' 1 & set '$Deck2_SV' 1 & set '$Deck3_SV' 1 & set '$Deck4_SV' 1 : set '$Deck1_SV' 0 & set '$Deck2_SV' 0 & set '$Deck3_SV' 0 & set '$Deck4_SV' 0"


Edit:

Actually your issue is that you use two different variables
@$Deck1_SV is different than $Deck1_SV
 

Posted Wed 09 Sep 15 @ 9:01 am
GianVJPRO InfinityMember since 2012
Argh ... my distraction.

Excuse me and Thank You very much.


 

Posted Wed 09 Sep 15 @ 9:44 am


(Old topics and forums are automatically closed)