'if' problem

There should be no semicolon at the end of an if.
Also, you probably want ==