Closed Merlain closed 1 year ago
Yeah, something is wrong here. I'm pretty sure it has to do with the 01
literal. I'm able to reproduce the unexpected behavior you're seeing and I've got what I need to look into this further.
Thanks for reporting this.
Fixed in commit 055dbfaeda51228223c16dc6bf54747524037dcf. I'll publish version 3.5.1 to PyPi with this fix this weekend.
Thank you ! awsome !
Version 3.5.1 has been published to PyPi with this fix. https://pypi.org/project/rule-engine/3.5.1/
Hello,
While writing rules, I realized the following result when I wrote "int_variable==01" instead of "int_variable==1".
When this condition is the only one in the rule, I get an error but when it is followed by other conditions, there is no more error and the returned results are invalid.
The results are invalid because what is before this condition does not seem to be taken into account.
Here is an example:
In this case, the "test=='NOTTEST' " part is ignored because before the invalid condition (the invalid condition is also ignored).