Interchanging HIGH/LOW with true/false

olf2012:
I go one step further with "descriptive names" and define

const boolean ButtonDown = false; // button connects to GND

...
if(digitalRead(pinButton) == ButtonDown){...}




If I need to change the button to high-side switching, there is only one line of code to change

Thats what enums are great for:

enum BUTTON_STATE{
  ButtonDown ,
  ButtonUp
};
...
if(digitalRead(pinButton) == ButtonDown){...}