begin if (edit1.Text='123')and (edit2.text='1') then button1.Enabled:=true else button1.Enabled:=false; end;