Math.js not validating Equal

Issue #9 resolved
Andreas created an issue

There seems to be a bug in Math.js not validating Equal

something == something

is always false.

I’ve tried with and without ““ to no avail.

https://homey.app/f/5nAeXj/
and an even simplier version
https://homey.app/f/drmgXj/

Comments (2)

  1. arie repo owner

    Hey,

    Turnes out, you can only evaluate numbers (and yes/no which is just 1/0).

    You cannot validate strings as Equals, because in both cases, it will try to translate it to a number (and that is where it fails).

    If your values are both numbers, it will work.

    But i guess this is not how you want it?

    So i just added an extra BLL logic condition card.

    Basic JS with the added custom functions etc.

    Coming in version 2.1.14.

  2. Log in to comment