title: Bitwise flags in Delphi
body: <p>I need to check if a certain flag is set for an integer.</p>
  
  <p>I already know how to set a flag:</p>
  
  <pre><code>flags := FLAG_A or FLAG_B or FLAG_C
  </code></pre>
  
  <p>But how can I check if a certain flag is set?</p>
  
  <p>In C++ I used the <code>&amp;</code> operator, but how does that work in Delphi? I'm a bit confused at the moment</p>