ir remote problem

The semicolon ends the if statement. Statements after the if are executed unconditionally.