can someone double check my code?

it has on i forgot to copy it i guess, and it compiles fine.
it is supposed to make sure it wont call the function if both buttons are pressed.
im not familiar with && ill look it up,but that part has been working.