RxJava filter 'else'
<p>I want to split my observable like <code>if/else</code> statement</p>

<p>Something like: </p>

<pre><code>A[] array = new A[10];
for (int i = 0; i &lt; array.length; i++) {
    array[i] = new A(getRandomString(), getRandomInt());
}

Observable.from(array)
    .filter(a -&gt; condition(a))
        .// &lt;--- do stuff  if condition returns true
        .// &lt;- back to parent
    .filter(a -&gt; complexCondition(a)) // filter all elements(!)
        .// &lt;--- do stuff if complex condition returns true
        .// &lt;- back to iterate all elements
</code></pre>

<p>Is it even possible?</p>