Organizational Research By

Surprising Reserch Topic

jquery if statement with variable mathematical operator


jquery if statement with variable mathematical operator  using -'javascript,jquery'


  Possible Duplicate:
  Is there a way to make a comparison operator a variable?  




So I am looking for something similar to this question python if statement with variable mathematical operator but in jQuery/Javascript

Essentially something like

var one = "4";

var two = "6";

var op = "==";

if (one op two) {
//do something
}


is this possible?
    
asked Sep 15, 2015 by StepanieStur
0 votes
95 views



Related Hot Questions



Government Jobs Opening


...