快速登录:  

Forum: General Discussion

话题: OR-disjunction in a query
Hi!

How could you use an OR disjunction in a query?
Something like that:
(leftdeck) OR (rightdeck && shift) ? this : that

"OR" doesn't seem to exist somehow...
 

发表时间 Sun 26 May 24 @ 3:35 pm
AdionPRO InfinityCTOMember since 2006
(a ? on : b) ? script
 

发表时间 Sun 26 May 24 @ 3:39 pm
Cool! It works!
But I don't know why?
What does "on" do or mean?

PS:
The script language of virtualdj is very tricky!!
 

发表时间 Sun 26 May 24 @ 3:52 pm
AdionPRO InfinityCTOMember since 2006
On is the same as yes or true
 

发表时间 Sun 26 May 24 @ 3:54 pm
Thank you! Now it's clear.
Nice tricky expression!
 

发表时间 Sun 26 May 24 @ 4:13 pm