title: How to rewrite complicated lines of C++ code (nested ternary operator)
body: <p>I've been looking through someone else's code for debugging purposes and found this:</p>
  
  <pre><code>!m_seedsfilter ? good=true : m_seedsfilter==1 ? good=newClusters(Sp) : good=newSeed(Sp);  
  </code></pre>
  
  <p>What does this mean? Is there an automated tool that will render this into more comprehensible if/else statements? Any tips for dealing with complicated control structures like this?</p>
  
  <p>Edit note: I changed this from "unnecessarily complicated" to "complicated" in the title, since it's a matter of opinion. Thanks for all your answers so far.</p>