Indeed it is supposed to be else if, not IF as Matthias stated.