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?