Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Instead of:

Do:

#variable1.show(#myVar1==1);
#variable2.show(#myVar1==1);
#variable3.show(#myVar1==1);
#variable4.show(#myVar1==1);

#variable5.show(#myVar1==1);

var myResult = #myVar1==1 ? true : false;
  #variable1.show(myResult);
  #variable2.show(myResult);
  #variable3.show(myResult);
  #variable4.show(myResult);
  #variable5.show(myResult);

#variable11.show(#myVar2==1);
#variable12.show(#myVar2==2);
#variable13.show(#myVar2==3);

var myResult2=#myVar2;
  #variable11.show(myResult2==1);
  #variable12.show(myResult2==2);
  #variable13.show(myResult2==3);

...