Using Switch in a If if condition

So if i add the LastButtonState somewhere, the code Will work?