title: Dynamically change the condition in if statement in javascript
body: <p>This code is to dynamiclly change the condition , however, this statement is recognized and interperted by chrome but not fx , how to fix the problem ? thanks</p>
  
  <pre><code>if a % 2 == 0 
    var condition = b == c  || b == d;
  else 
    var condition = b == e  || b == f ;
  
  if (condition)
    ......
  </code></pre>