var
 sHoge: String;
 iFoo: Integer;
begin
  if sHoge = 'hoge1' then iFoo := iFoo + 10
 else if sHoge = 'hoge2' then iFoo := iFoo + 20
 else if sHoge = 'hoge3' then iFoo := iFoo + 30;
end;