There should be no space after "if", after "(", before ")".