I am trying to create a dynamic validation in JavaScript for a structure "if" for example:

```
    var var1=1;
    var comparator="!==";
    var var2=1;
    if(var1+comparator+var2){
        alert("Yes, its false");
    }else{
        alert("Yes, its true");
    }

```

The Three variables could change as the user desires. I've discovered that the sentence always is validated "true", because the structure "if" validate that the String exist.

What I want is, that the user changes any of this three variable and the function returns the result. Obviously, the comparison operator is controlled by other function that restrict the options for the operators to: "===", "!==" ...

Thanks and regards