Ok so i have this, it compiles but doesn't work?
const byte buttonPin = 2;
const byte buttonPin10 = 10;
pinMode(buttonPin, INPUT_PULLUP);
pinMode(buttonPin10, INPUT_PULLUP);
while ( (digitalRead(buttonPin) == HIGH) || (digitalRead(buttonPin10) == HIGH) );