|
-
December 2nd, 2011, 03:01 PM
#1
enum or evaluating string as literal
How do I do the following in the shortest code? Not looking for fancy or super creative. Just want to know how to use the basic function(s).
int x=5;
int y=7;
str gthan="y>x"; // how to evaluate gthan as a string to make it return true?
str moreComplex="(y>x || y>10)"; // how to evaluate moreComplex to also return true?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|