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

    Check for <null>

    Scheduled Pinned Locked Moved Unsolved Help and Support
    10 Posts 2 Posters 2.1k Views 2 Watching
    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 Offline
      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)😁

      Jack de WildeJ 1 Reply Last reply Reply Quote 0
      • Jack de WildeJ Offline
        Jack de Wilde @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 Offline
          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.

          Jack de WildeJ 1 Reply Last reply Reply Quote 0
          • Jack de WildeJ Offline
            Jack de Wilde @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 Offline
              iTap Development @Jack8680
              last edited by

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

              Jack de WildeJ 1 Reply Last reply Reply Quote 0
              • Jack de WildeJ Offline
                Jack de Wilde @iTap Development
                last edited by

                @iTap-Development 0_1483153719200_IMG_2643.PNG

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

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

                  Jack de WildeJ 1 Reply Last reply Reply Quote 0
                  • Jack de WildeJ Offline
                    Jack de Wilde @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 Offline
                      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?

                      Jack de WildeJ 1 Reply Last reply Reply Quote 0
                      • Jack de WildeJ Offline
                        Jack de Wilde @iTap Development
                        last edited by

                        @iTap-Development yeah, that should work too.

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post