P
Plamen Kouzov
I have a string, generated at runtime, which I want to convert to a
boolean.
The string can be something like:
"(true or false or true) andalso false"
"false orelse true"
, pretty much any string of booleans with the operators "and", "or",
"andalso", "orelse".
Is there a way to somehow parse and evaluate the string as a boolean?
boolean.
The string can be something like:
"(true or false or true) andalso false"
"false orelse true"
, pretty much any string of booleans with the operators "and", "or",
"andalso", "orelse".
Is there a way to somehow parse and evaluate the string as a boolean?