How to pass any kind of a operator in a variable and later use that variable in a if condition

as mentioned by @supermanPunch we cannot bypass the compiler and its compilation step.

Have a look here:

And also here:

as maybe the offered eval() functionality can be used / integrated