Code explanation
-
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
-
@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
-
Is it the conditional operator in C language you mean?
https://en.wikipedia.org/wiki/%3F:#C
-
@bjacobse Ok, now i understand, thank you for the link and for a quick reply. Case closed