--简单判断
if 判断条件 then
...
end if;
--二重条件分支
if 判断条件 then
....
else
....
end if;
--多重条件分支
if 判断条件 then
....
elsif 判断条件 then
....
else
....
end if;
--循环
loop
--退出循环判断
exit when 判断条件;
end loop;
--while 循环
while 判断条件 loop
....
end loop;
--for 循环
for 循环变量 in reverse 变量取值范围(start..end) loop
....
end loop;