mardi 25 août 2015

Function within the if condition

I'm using this function right now:

function (){
   if (function1()== function2()){
       //Do something.
     };
 };

So each time I call the function () the function1() and function2() will also run. How can I prevent this? Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire