Perchè il blocco di codice va racchiuso tra le parole chiave begin...end.
codice:
if condition then
begin
  ...
end
else begin
  ...
end;
Ciao!