Variable Confusion

Slight tweak in if statement