hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Check for <null>

    Scheduled Pinned Locked Moved Unsolved
    Help and Support
    2
    10
    848
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • iTap DevelopmentI
      iTap Development
      last edited by

      How do you check for <null>? For example, seeing if a dictionary key exists(I need to do that in a project)😁

      Jack8680J 1 Reply Last reply Reply Quote 0
      • Jack8680J
        Jack8680 @iTap Development
        last edited by Jack8680

        @iTap-Development EDIT: strange, if(something=<null>) doesn't work and if(something=) doesn't work... even passing the null through a box container doesn't work, it isn't equal to <null> and it isn't not equal to <null> 🤔

        iTap DevelopmentI 1 Reply Last reply Reply Quote 0
        • iTap DevelopmentI
          iTap Development @Jack8680
          last edited by iTap Development

          @Jack8680 I tried that but it didn't work...<null> is just what it displays. I also tried Blank.

          Jack8680J 1 Reply Last reply Reply Quote 0
          • Jack8680J
            Jack8680 @iTap Development
            last edited by Jack8680

            @iTap-Development it seems hyperPad treats <null> as not a string (or at least not equal to the string <null>). Combining text with it should fix that. For example, combine the # symbol to the end of it and then do if(something=<null>#)

            iTap DevelopmentI 1 Reply Last reply Reply Quote 0
            • iTap DevelopmentI
              iTap Development @Jack8680
              last edited by

              @Jack8680 Could you re-explain that....I'm not exactly sure what you mean.

              Jack8680J 1 Reply Last reply Reply Quote 0
              • Jack8680J
                Jack8680 @iTap Development
                last edited by

                @iTap-Development 0_1483153719200_IMG_2643.PNG

                iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                • iTap DevelopmentI
                  iTap Development @Jack8680
                  last edited by iTap Development

                  @Jack8680 thanks!!! Why does that work like that?

                  Jack8680J 1 Reply Last reply Reply Quote 0
                  • Jack8680J
                    Jack8680 @iTap Development
                    last edited by

                    @iTap-Development I'm guessing because the <null> output isn't treated as a string and so isn't equal to the text <null>. Combining text with it would turn it into a string, so it is equal to a string you type into the if.

                    iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                    • iTap DevelopmentI
                      iTap Development @Jack8680
                      last edited by iTap Development

                      @Jack8680 yeah I just found that you can just combine text but leave the second input blank( combine dictionary Val with blank then if combine = <null>) and it works fine too. Then if dictionary Val isn't <null> it won't effect its value right?

                      Jack8680J 1 Reply Last reply Reply Quote 0
                      • Jack8680J
                        Jack8680 @iTap Development
                        last edited by

                        @iTap-Development yeah, that should work too.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post