Undefined is suppose to be null but..

  • achivas-1326874769961779210

    A-Chivas

    3 months 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
    1326874770188406876-image.png
  • uunicode-1326878675832012863

    unicodes

    3 months ago

    Usually i'm using this check, could this solve your issue?
    1326878675374968923-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.
    1326878918422036490-Screenshot_2025-01-09_at_13.42.21.png
  • lucasg-1326941000450445372

    Lucas G

    3 months 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
  • lucasg-1326941365464072273

    Lucas G

    3 months ago

    What is this check for?
  • uunicode-1326942970414497914

    unicodes

    3 months 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.
  • martinf4630-1327229779069374518

    MartinF

    3 months 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.
    1327229778960318506-CleanShot_2025-01-10_at_10.43.282x.png
  • martinf4630-1327230350702678089

    MartinF

    3 months ago

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

    Tod

    3 months ago

    Great energy @MartinF! Your continuous contribution to the toddle Community just made you advance to Community Level 5!
  • martinf4630-1327240027696009237

    MartinF

    3 months ago

    Added a bit to the bottom as is it wasn't blocking "undefined", which it seems to be thinking is a string.
    1327240027486556181-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.