Undefined is suppose to be null but..

  • /attachments/1326874769961779210/1326874770188406876/image.png

    A-Chivas

    4 days ago

    dont know why it passes of as a string one day and null the other, also messes up the entire formula, her it is false for some reason, plz help
    image.png
  • /attachments/1326874769961779210/1326878675374968923/Screenshot_2025-01-09_at_13.41.40.png

    unicodes

    4 days ago

    Usually i'm using this check, could this solve your issue?
    Screenshot_2025-01-09_at_13.41.40.png
  • also you can use this, but now always working, in some situation it returns incorrect. this is why size, gr. than is my favorite and you can be sure that returns as expected.
    Screenshot_2025-01-09_at_13.42.21.png
  • Lucas G

    4 days ago

    Use the Default to node to default it to null before comparing it to null
  • The issue here is that undefined does not equal to null
  • Lucas G

    4 days ago

    What is this check for?
  • unicodes

    4 days ago

    I'm checking if an API or variable returns a value before making a decision, such as displaying a default avatar image or the user's avatar.
  • /attachments/1326874769961779210/1327229778960318506/CleanShot_2025-01-10_at_10.43.282x.png

    MartinF

    3 days ago

    I've had the issue to with null and undefined, so tried to create a global formula to check for all 'empty' values. It seems to reliably return true for undefined, any null value and any empty string, object or array. Useful for looking for the absence of things.
    CleanShot_2025-01-10_at_10.43.282x.png
  • MartinF

    3 days ago

    Would be greateful to know if any holes in this
  • Tod

    3 days ago

    Great energy @MartinF! Your continuous contribution to the toddle Community just made you advance to Community Level 5!
  • /attachments/1326874769961779210/1327240027486556181/CleanShot_2025-01-10_at_11.36.082x.png

    MartinF

    3 days ago

    Added a bit to the bottom as is it wasn't blocking "undefined", which it seems to be thinking is a string.
    CleanShot_2025-01-10_at_11.36.082x.png

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.