Which is the better way for conditional variable assignment?
1st method
if (true) { var myVariable = \'True\'; } else { var myVariable = \'False\
Maybe you simply need && operator to check if boolean is true, if it is, assing "myVariable" to true.
&&
var myVariable = 'False'; true && myVariable = 'True';