title: Chaining observables (that are network requests)
body: <p>I have a network request called <code>login</code> that returns an <code>Observable&lt;UserInfo&gt;</code>.  I need to make another API call from that result based on whether the data returned from <code>login</code> has a count > 1, otherwise, I just need to go to a different view controller.  I’m trying to use <code>flatMapLatest</code> to do the check for the first request <code>login</code> and make the next network call <code>jobStates</code> (which returns an <code>Observable&lt;JobState&gt;</code>, but I don’t think I’m arranging them correctly.   Any ideas?  Is there a better / easier way to do this?</p>
  
  <p>Here's what it looks like:
  <a href="https://i.stack.imgur.com/OFdON.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OFdON.png" alt="enter image description here"></a></p>