sklose / NCalc2

expression evaluator for .NET with built-in compiler
MIT License
166 stars 58 forks source link

Override operators #47

Open Gillardo opened 4 years ago

Gillardo commented 4 years ago

I cannot find anything on this but can someone please tell me if it's possible to override the operators? I want to be able to check when + - / * > >= < <= are performed if one of the parameters is null and thus handle it.

Gillardo commented 3 years ago

Any news on this please?

Bykiev commented 2 years ago

Hi, I don't think it's a good idea to override default implementation of such operators, the preferred way is using if function and handle your logic here. Maybe you can provide some more samples when it will be helpful?