samedi 26 novembre 2016

How to translate this condition right?

i have this condition:

con1 ?  (con2 || con3) ? "blue" : "white" : "green"

the way i understand this: you read from left to right.

if con1 = true , then "blue"
if con1 = false, then "white"
if con2 || con3 = true, then "green"
?

I think there is somewhere a mistake....hope you guys can help

thanks so much!

Aucun commentaire:

Enregistrer un commentaire