Why == works in an if statement?

Don, you're welcome. The answer to your next question is in the Arduino Reference or any C++ reference (for example, this one). Let us know if you don't find it :slight_smile: