Muliple if statement

As for the array: it's an array of booleans expressing if a certain button was pressed or not.