If Method

RxJS

If condition is true, then thenSource else elseSource.

Namespace:  Rx
Assembly:  RxJS (in RxJS.dll)

Syntax

JavaScript
Rx.Observable.If = function(condition, thenSource, elseSource);

Parameters

condition
Type: System..::.FuncBoolean
thenSource
Type: Rx..::.Observable
elseSource
Type: Rx..::.Observable

See Also