jQuery if statement with variable mathematical operator
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10591243/is-there-a-way-to-make-a-comparison-operator-a-variable">Is there a way to make a comparison operator a variable?</a>  </p>
</blockquote>



<p>So I am looking for something similar to this question <a href="http://stackoverflow.com/questions/11847359/python-if-statement-with-variable-mathematical-operator">python if statement with variable mathematical operator</a> but in jQuery/Javascript</p>

<p>Essentially something like </p>

<pre><code>var one = "4";

var two = "6";

var op = "==";

if (one op two) {
//do something
}
</code></pre>

<p>is this possible?</p>
