parse and convert string generated at runtime to a boolean

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top