parse and convert string generated at runtime to a boolean

  • Thread starter Thread starter Plamen Kouzov
  • Start date Start date
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?
 
Back
Top