Undefined isn't false?

  • ssssadsadasd-1354059347621318656

    ssssadsadasd

    7 days ago

    If [here ](https://toddle.dev/docs/show-hide-formula) 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.kayr-1354062151538577479

    Max

    7 days ago

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

    ssssadsadasd

    7 days 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.kayr-1354073250531119114

    Max

    7 days 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
  • lucasg-1354091728981725314

    Lucas G

    7 days ago

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

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code β€” but accessible to your entire team!

Try toddle β€” it's free!

Β© Copyright 2024 toddle. All rights reserved.