Hi all,
I am looking out for something very urgently
The problem
I have a
string "((45 > 21)&& (45 < 61)) || ((47 > 25) && (47< 51))"
this is dinamically created. I have gotta evaluate this string to return a boolean value of true or false as per the condition.
The problem is since it is a string i am not able to get it into an of condition but if i have the same expression as a boolean for eg boolean tbExp=((45 > 21)&& (45 < 61)) || ((47 > 25) && (47< 51));
then the compiler automatically assigns a value of true or false to tbExp as per the expression. Is there any way that i could convert a string object to a boolean. Otherwise how do i go about the same.
regards
riaz