title: How to create a conditional statement for in RxJs where the condition is the result of another observable?
body: <p>In the code below I am trying to set 'this.organizationRequests$' to it's initial value OR when the actionSubject returns a CreateNewOrganizationRequest type set 'this.organizationRequests$' to null. How to set an alternative route for the ofType ?</p>
  <p>Pseudo code:</p>
  <pre><code>    this.organizationRequests$ = this.organizationRequests$.pipe(
        filter(orgRequest =&gt; Boolean(orgRequest)),
        switchMap(orgRequest =&gt;
          this.actionSubject.pipe(
            ofType(fromOrgActions.CreateNewOrganizationRequests)
          )
            ? EMPTY
            : of(orgRequest)
        )
      );
  </code></pre>