javascript eval and c# is this the answer

Hi there

I’m working on a project where I want my users to type basic Math formulas from variables they created themselves. So in stead of spending months writing a c# parser, I thought of having a javascript function that can receive the formula as a string parameter and return the result, as a float answer.

I just want to know if this sounds correct?
Thanks

While probably possible, it leaves your app open to all kinds of hacks. It’s usually better to use some other scripting language like Lua.

ok, thanks