plantain-00 / expression-engine

An expression tokenizer, parser and evaluator.
MIT License
8 stars 1 forks source link

Added support for string inequalities #7

Closed rkoshy closed 1 year ago

rkoshy commented 1 year ago

In our usage of this library, we came across a strange issue where string comparisons were failing.

Previously if your expression contained two strings and you attempted any of the inequality operators, you'd get an error stating that it wasn't a number.

This patch fixes this and works for us.