Hello!
I am trying to implement an if statement using comparison values. So far, despite much testing, the console always returns if and never else.
My Test Code:
var oneCount = 1;
var twoCount = 2;
if ("{'oneCount':{'$gt':'twoCount'}}") {
console.log ("IFVAR");
} else {
console.log ("ELSEVAR");
}
if ("{2:{'$gt':1}}") {
console.log ("IFNUM");
} else {
console.log ("ELSENUM");
}
Thanks!
Randy