title: dynamic if statement in Javascript
body: <p>Is there anyway to convert a string to a condition inside if statement:  </p>
  
  <p><strong>example:</strong></p>
  
  <pre><code>var condition = "a == b &amp;&amp; ( a &gt; 5 || b &gt; 5)";
  
  if(condition) {
      alert("succes");
  }
  </code></pre>