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 770 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

    korttomaK 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

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


          13

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          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