Help forum

Undefined isn't false?

  • ssssadsadasd

    1 year ago

    If [here ](https://docs.nordcraft.com) it says "We only treat these values as falsy: false, null, and undefined" why when I do "undefined value = false" it returns false? thanks
  • Max

    1 year ago

    โ€žFalsyโ€œ is not false. It just means it is not true. But undefined does not equal false
  • ssssadsadasd

    1 year ago

    @Max ah I thought it meant that it evaluated to false. thanks.
    I managed to solve this with "default to equals to null" which evaluates undefined as null
  • Max

    1 year ago

    That works ๐Ÿ™‚ You can also add a "Boolean" node after the value that is undefined. This will give you either true or false. And for falsy values, it will give you false
    ๐Ÿ‘1
  • Lucas G

    1 year ago

    Worth noting that toddle falsy value are not the same as JS
    ๐Ÿ‘€1
    ๐Ÿ’ช1