I have a condition check resulting in a string value of
String example = "( (true and true) or (true and false) );
"
I need to convert this string into a boolean value, in this case the result should be true or in another example;
String example = "( (true and true) and (true and false) );"
this should return false.
Is there any utility method that I can use to achieve this? Or any other ideas?