title: using image in if statement
body: <p>how can i use image in if statement?</p>
  
  <p>for example i want to check in click event of a picturebox that if a specific image(for example image1) is in it,then do some work.thanks in advance</p>
  
  <p>update:</p>
  
  <p>like this
  the picturebox can be null or have an image in it,i want to check image1 is in it or not</p>
  
  <pre><code>    private void pictureBox34_Click(object sender, EventArgs e)
      {
          if (///picturebox34=image1)
          {
              f();
          }
      }
  </code></pre>
  
  <p>now when i compile this code i took error:cannot convert system.drawing.image to bool</p>