You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After debugging some issues found in telefonicaid/iotagent-node-lib#1440 we faced that the Library behaviour when facing null and undefined variables (or constants) in expressions is not so consistent. After that, we made some tests that con can check in the following JEXL Playground
It is specially meaningful cases like t5n that is 0 and t5u that is not appearing (undefined) or t4n vs t8n.
The expected behaviour is, that any arithmetic operation involving null or undefined return that value (or null, or undefined), being aligned when using null and undefined constants
The text was updated successfully, but these errors were encountered:
After debugging some issues found in telefonicaid/iotagent-node-lib#1440 we faced that the Library behaviour when facing null and undefined variables (or constants) in expressions is not so consistent. After that, we made some tests that con can check in the following JEXL Playground
In which the following expressions are defined:
And the following output is returned:
Note that
n:null
and u is not defined (undefined
)It is specially meaningful cases like t5n that is 0 and t5u that is not appearing (undefined) or t4n vs t8n.
The expected behaviour is, that any arithmetic operation involving null or undefined return that value (or null, or undefined), being aligned when using null and undefined constants
The text was updated successfully, but these errors were encountered: