What does the "?" and ":" do in this Code

Thanks for posting this. I put it in my 'Cool Code" folder. The part of the code I still don't understand is the > operator.

if (ms - msLast > (relayState ? Relay_ON : Relay_OFF))

Just what is the result of 'ms-msLast' being compared to?

  • Scotty