Hanneman:
What do you mean Paul?
What do you think that line of code is doing?
What it ACTUALLY is doing is assigning the value of 0 to encoderPos and to reading, and then testing if 0 is true. It isn't, so the body of the statement will never be executed.