Thanks for working with me, can't really help it that it worked out until now especially if it should not have. I am glad to take pointers, but please trust me that I did not post code that did not work to my expectations.
So the digitalRead part did not work but the code just skipped it and took the variable as next command? If the Arduino considers it a NOP I can understand how it has worked even though it did not make sense.