If statement problem

Cheers FIXED, this is what happens when you cut and paste.