If this has been asked before I apologize, but I could not find it.
I also hope this is the right forum section for IronPython.

I have a system I need to implement where I would like to make it as dynamic for the people keeping it up to date. The system has alot of not so complex calculations, where it would be nice if they could change em if needed.

I have now with IronPython been able to make the following work:

static object Calculate (string expression)
ScriptEngine engine = Python.CreateEngine();
return engine.Execute (expression);

it does the calculations just fine if I send it 2+4 in a string. Now I wanted to try and send it if(3<2){2}else{3} but then it fails. Is this even possible, and if it is, what is the syntax?