title: IF statement for MessageDlg Delphi
body: <p>How do I use an if statement to get the status of a button that was clicked in a `MessageDlg'?</p>
  
  <p>Heres my code:</p>
  
  <pre><code>if MessageDlg('Message',mtError,[mbYesNoCancel],0) = No
      then ShowMessage('Message2');
  </code></pre>
  
  <p>I saw my IT teacher write something like this a while ago, but I don't remember the syntax.</p>