IF does not work in code

Thank you for your reply Robin,

Apologies for the bump up I shall be more patient next time.

I have now solved the issue I had, I managed to figure out that it was actually a hardware issue rather than a software issue. The code works well now.

Zee