title: Get rid of if statement
body: <p>In code I come to situation like this:</p>
  
  <pre><code>if (a &amp;&amp; b || c &amp;&amp; d || e &amp;&amp; f || g &amp;&amp; h){
      // do something
  }
  </code></pre>
  
  <p>Like this:</p>
  
  <pre><code>if len(env.workers) == 0 &amp;&amp; env.minQueue.Len() == 0 || len(env.workers) == len(env.daemonList) &amp;&amp; env.minQueue.Len() == 0 || len(env.workers) &gt; 0 &amp;&amp; len(env.workers) == len(env.daemonList) {
          env.shouldStop = true
          return nil
      }
  </code></pre>
  
  <p>But it's hard to debug and find errors. Is there any way to use more friendly constructuion to replace such statement.</p>