Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Shorten simple if statements

Instead of:

Do:

var myResult;
if (#var1==1) myResult=true;
else myResult=false;

var myResult = #var1==1 ? true : false;




  • No labels