Code operates and ignores the input states...why

I commented them out so it would be easier to find the fault... :frowning: ..Doh. I now read the pin state in the if statement, bit cleaner..
I stared and stared and did not see my typo...all well now..thanks.