Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Check for <null>

Check for <null>

Scheduled Pinned Locked Moved Unsolved Help and Support
10 Posts 2 Posters 2.2k Views 2 Watching
  • 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 DevelopmentI Offline
    iTap Development
    wrote on last edited by
    #1

    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
    0
    • iTap DevelopmentI iTap Development

      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 Offline
      Jack de WildeJ Offline
      Jack de Wilde
      wrote on last edited by Jack8680
      #2

      @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
      0
      • Jack de WildeJ Jack de Wilde

        @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 Offline
        iTap DevelopmentI Offline
        iTap Development
        wrote on last edited by iTap Development
        #3

        @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
        0
        • iTap DevelopmentI iTap Development

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

          Jack de WildeJ Offline
          Jack de WildeJ Offline
          Jack de Wilde
          wrote on last edited by Jack8680
          #4

          @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
          0
          • Jack de WildeJ Jack de Wilde

            @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 Offline
            iTap DevelopmentI Offline
            iTap Development
            wrote on last edited by
            #5

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

            Jack de WildeJ 1 Reply Last reply
            0
            • iTap DevelopmentI iTap Development

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

              Jack de WildeJ Offline
              Jack de WildeJ Offline
              Jack de Wilde
              wrote on last edited by
              #6

              @iTap-Development 0_1483153719200_IMG_2643.PNG

              iTap DevelopmentI 1 Reply Last reply
              0
              • Jack de WildeJ Jack de Wilde

                @iTap-Development 0_1483153719200_IMG_2643.PNG

                iTap DevelopmentI Offline
                iTap DevelopmentI Offline
                iTap Development
                wrote on last edited by iTap Development
                #7

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

                Jack de WildeJ 1 Reply Last reply
                0
                • iTap DevelopmentI iTap Development

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

                  Jack de WildeJ Offline
                  Jack de WildeJ Offline
                  Jack de Wilde
                  wrote on last edited by
                  #8

                  @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
                  0
                  • Jack de WildeJ Jack de Wilde

                    @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 Offline
                    iTap DevelopmentI Offline
                    iTap Development
                    wrote on last edited by iTap Development
                    #9

                    @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
                    0
                    • iTap DevelopmentI 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 Offline
                      Jack de WildeJ Offline
                      Jack de Wilde
                      wrote on last edited by
                      #10

                      @iTap-Development yeah, that should work too.

                      1 Reply Last reply
                      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
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search