title: Gulp condition inside pipe
body: <p>How can I do a condition inside Gulp pipe to output to a different destination. </p>
  
  <pre class="lang-js prettyprint-override"><code>g.task('sass', function() {
    return g.src(sources.sass).pipe(changed(output.css)).pipe(sass({
      style: 'compressed',
      sourcemap: true
    })).pipe(function() {
      if (..) {
        g.dest(output.css);
      } else {
        g.dest(output.css2);
      }
    }).pipe(notify('scss converted to css and
  compressed
  &lt;%=f ile.relative %&gt;'));
  });
  </code></pre>