Fix coding style to use elseif