matheval / expression-evaluator-c-sharp

Matheval is a mathematical expressions evaluator library written in C#. Allows to evaluate mathematical, boolean, string and datetime expressions
https://matheval.org/
MIT License
110 stars 30 forks source link

How to add custom constant #24

Open prakashboston opened 9 months ago

prakashboston commented 9 months ago

Really very nice expression evaluation engine Thanks @matheval Integrate the logic for adding custom constant values during the evaluation process. Example: I want to add custom constant addConstant("[%CurrentDateTime%]",DateTime.Now); Help me to add this constant

0x6DD8 commented 1 month ago

Can't you just pass a variable?

prakashboston commented 1 month ago

Thanks for your reference