Why are IF on line 10 and ELSEIF on line 12 followed by same conditional expression?