Author: mark836 | Posted on: 4/30/2009 12:10:01 PM | Views : 256

 Does anyone have any knowledge of expression evaulators written in .Net?  I need an expression evaulator that can handle conditional statements such as "if" and/or "case" statements.  It would be really great if I could load this expression evaulator tool into Sqlserver in order for store procedures to call it too!

 Example
string pass_variable = "if (@a > @b) return @a + @b else return 0;"
        string returnVal;
        int aValue = 5, bValue = 3;
        pass_variable.Replace("@a", aValue.ToString());
        pass_variable.Replace("@b", bValue.ToString());
        returnVal = EvaluationProcessor.exe(pass_variable);



...

Go to the complete details ...