Back

Or:

procedure TForm1.Button1Click(Sender: TObject);
begin
    if (Edit1.Text = 'a') or (Edit2.Text = 'b') then
    Close;
end;


Back