camunda / feel-scala

FEEL parser and interpreter written in Scala
https://camunda.github.io/feel-scala/
Apache License 2.0
120 stars 49 forks source link

Handle non-existing variable in comparison #676

Closed remcowesterhoud closed 1 year ago

remcowesterhoud commented 1 year ago

Description

Before when we encountered a non-existing variable in a comparison it would result in an error: "no variable found for name 'x'". This commit changes this so we can deal with non-existing variables. They now get treated as ValNull and the comparison succeeds without errors.

Related issues

Fixes part of #582

remcowesterhoud commented 1 year ago

I have added between to the testcases. I'll merge this now and create the follow-up issues you mentioned.