Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
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
Brand Logo
  1. Home
  2. General Discussion
  3. Code explanation

Code explanation

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 1.2k Views 3 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.
  • R Offline
    R Offline
    RoyZone
    wrote on last edited by
    #1

    Hi, this is my first post so I would first like to thank you for the nice tone of the forum. So to my question. I have used this code in my project and it works perfectly well, but I can't get it, and it bother me of course. Is there any kind soul that can explain? ```
    == HIGH? 1: 1

    K 1 Reply Last reply
    1
    • R RoyZone

      Hi, this is my first post so I would first like to thank you for the nice tone of the forum. So to my question. I have used this code in my project and it works perfectly well, but I can't get it, and it bother me of course. Is there any kind soul that can explain? ```
      == HIGH? 1: 1

      K Offline
      K Offline
      korttoma
      Hero Member
      wrote on last edited by
      #2

      @royzone Your code is a bit incomplete because you did not include the entire line but I think that you are comparing some boolean variable to the value "HIGH" and if it is HIGH then you send the value "1" with ack (acknowledgement).

      If an experienced coder see that my asumption is incorrect please correct me ;)

      • Tomas
      1 Reply Last reply
      1
      • B Offline
        B Offline
        bjacobse
        wrote on last edited by
        #3

        Is it the conditional operator in C language you mean?
        https://en.wikipedia.org/wiki/%3F:#C

        R 1 Reply Last reply
        1
        • B bjacobse

          Is it the conditional operator in C language you mean?
          https://en.wikipedia.org/wiki/%3F:#C

          R Offline
          R Offline
          RoyZone
          wrote on last edited by
          #4

          @bjacobse Ok, now i understand, thank you for the link and for a quick reply. Case closed:grinning:

          1 Reply Last reply
          1

          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


          16

          Online

          12.0k

          Users

          11.2k

          Topics

          113.4k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular