title: Getting Error Msg - Cannot implicitly convert type 'string' to 'bool'
body: <p>I am checking for values in a textbox to trigger a conditional statement, but am getting error messages.</p>
  
  <pre><code>if (txtAge.Text = "49") || (txtAge.Text = "59")
  {
      txtNote.Text = "A valid picture ID must be submitted";
  }
  </code></pre>
  
  <p>The error message I am getting is <em>Cannot implicitly convert type 'string' to 'bool'</em></p>
  
  <p>How can I resolve this?</p>