Is it possible to convert a string expression into a boolean condition?
For example, I get the following string:
var b = "32 < 45 && 32 > 20"
I would like to create a bool
expression out of this and invoke it. The string representation is also flexible (to make it more fun), so it allows ||, &&, ()
.