title: Need help understanding something like while ((status = SOME_STATUS == FunctionName(params)))
body: <p>I'm seeing in one of the files I've inherited the following line</p>
  
  <pre><code>while ((status = SOME_STATUS == FunctionName(params)))
  </code></pre>
  
  <p>Obviously names have been changed, but you get the idea.  Can someone explain to me how the compiler sets the values and in what order...</p>
  
  <p>I'm thinking that status get set to SOME_STATUS and then is set the result of the function? </p>
  
  <p>I've never seen this in all my years developing.  Why in the world would someone do this?  It's completely nuts... or maybe I am!  </p>
  
  <p>Thanks.
  -stv</p>