title: Powershell if then
body: <p>I'm having an issue with the if then.</p>
  
  <pre><code>    $result = getMachineInfo $rlprddeploy $mdt
  "-MachineID-    -LastContactAt-          -LastIP-   -Deployment Receiver Version-"
  $machine = $result.MachineID
  $result | % { '{0,-10} {1,23} {2,16} {3,20}' -f $_.MachineID, $_.LastContactAt, $_.LastIP, $_.DeploymentReceiverVersion }
  #$result | ft -auto
  </code></pre>
  
  <p>if $_.DeploymentReceiverVersion is less than 5.46.54 then I'm going to send a file to do an update. If the version is 5.55 then nothing needs to be done.</p>
  
  <p>I've been banging my head against this for a week now and I can't figure it out. Every $_.blahblah is information pulled from an SQL table on a server.</p>
  
  <p>We've been sending out updates manually and I'd like to stop that.</p>