Suppose I have 3 functions each returning an observable. Each observable will emit only one value - true or false. I want to call them one after another only if the previous one returns true. Otherwise, I just want to return false and end the observable. How can I do that?
It would be quite easy with promises:
return fn1().then(fn2).then(fn3).catch((v)=>{return v})
As soon as any function in the chain rejects the promise with false no other promise callbacks will be called and the resolved promise value will be false. I'm looking for something similar with observables.