Ingreso rápido:  

Forum: General Discussion

Tema: VDJScript - nesting condition operators

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

doug9474ControlleristMember since 2019

I am trying to figure out how VDJscript works, for one, with regard to nesting conditional operators.

It doesn't look like there are parenthesis in the language to make it clearer, so I'm trying to figure out the order of operations. I would like to know how nested conditional operators work. To copy one example from http://www.virtualdj.com/wiki/VDJScript%20Examples%20Database.html:

var 'double' ? set 'double' 0 & repeat_stop 'myrep' & device_side 'left' ? deck left clone_deck right : deck right clone_deck left : set 'double' 1 & repeat_start 'myrep' 400ms 1 & load & set 'double' 0

Is that to be interpreted as (parenthesis added by me):

var 'double' ? ( set 'double' 0 & repeat_stop 'myrep' & device_side 'left' ? deck left clone_deck right : deck right clone_deck left ) : set 'double' 1 & repeat_start 'myrep' 400ms 1 & load & set 'double' 0

Also, is the value of the conditional operator the value of the side that ends up being executed?

Thanks,
Doug
 

Mensajes Sun 25 Aug 19 @ 8:37 am


(Los tópicos y foros antiguos son automáticamente cerrados)