Changed "else if" to "elseif"