if判断语法如下
if 条件1 then ......elseif 条件2 then ......else ......end if;
if 条件1 then
......
elseif 条件2 then
else
end if;