title: Having troubles with a conditional if statement in Powershell
body: <p>Having troubles getting my code to read multiple conditions if an if elseif statement. Not sure why it never reads the second condition. I have tried it about a dozen different ways. Any help would be appreciated. Here is the code from my last attempts. I have tried multiple strings with ! in front and so forth. Still wont read the second statement.</p>
  <pre class="lang-bsh prettyprint-override"><code>if (($attachscreenshot = $false) -and ([bool]$textbox2))
  {
      newmail0
  }
  
  elseif (($attachscreenshot = $true) -and ([bool]$textbox2))
  {
      newmail3
  }
      
  elseif ($attachscreenshot = $false)
  {
      newmail1
  }
  
  else
  {
      newmail
  }
  </code></pre>