PLPGSQL IF Declaración

if condition then
  statements;
else
  alternative-statements;
END if;
The Rambling Lank