string-math icon indicating copy to clipboard operation
string-math copied to clipboard

Evaluates a math expression from a string. Supports variables and custom operators.

Results 2 string-math issues
Sort by recently updated
recently updated
newest added

Hi Emanuel- Looking at how to handle conditionals, as not everything maps to linear functions. I'd really like a fn (a,b,c) which returns b if a else c, or functionality...

Allow user defined functions #11 Sample: ```csharp _context.RegisterFunction("if", (args) => args[0] > 0 ? args[1] : args[2]); Assert.IsTrue("if(5 > 2, {true}, {false})".EvalBoolean(_context)); ```