title: use of **and** operator within an **if statement**
body: <p>I was directed to this website by a friend.</p>
  
  <p>I am trying to use <code>and</code> in Delphi, but I seem to be doing something wrong. Is there something you need to put in uses?</p>
  
  <p>I have the following code:</p>
  
  <pre><code>procedure TForm1.Button1Click(Sender: TObject);
  var
  a,b:string;
  begin
  a:=edit1.Text;
  b:=edit2.Text;
  
  if a=abc and b=def then
  showmessage(a+b);
  
  end;
  </code></pre>
  
  <p>I get an error at the second = sign</p>