sklose/NCalc2

Override operators

Opened this issue · 2 comments

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.

Any news on this please?

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?