title: Multiple Variable Conditions for If Statement in PowerShell
body: <p>Thanks for the help in this, I think i have over complicated the below but the logic just isn't responding how my mind is telling it too.</p>
  
  <p>Logic in Question:</p>
  
  <pre><code>$a = "One"
  $b = "Two"
  $c = "Three"
  $d = "Four"
  
  If( {$a -and $b} -ne {$c and $d} ) {
     Write-Host "Values are Different"
  } Else {
     Write-Host "values are the same"
  }
  </code></pre>
  
  <p>I want the If statement to run when $a and $b are different to $c and $d, If the are the same see below, I want it to output that the values are the same</p>
  
  <pre><code>$a = "One"
  $b = "One"
  $c = "One"
  $d = "One"
  </code></pre>
  
  <p>Thanks in advance!</p>