Is it possible to convert a string to an operator for use in a logical condition.
For example
if(x Convert.ToOperator(\">\") y) {}
Vici Parser (open-source) may be of help to you. It's a C# expression parser where you can just pass a string containing an expression, and you get the computed result back.