When condition
is true, returns the result of calling trueCase()
, else
returns the result of calling falseCase()
if falseCase
is defined.
This is a convenience wrapper around a ternary expression that makes it a little nicer to write an inline conditional without an else.
When condition
is true, returns the result of calling trueCase()
, else
returns the result of calling falseCase()
if falseCase
is defined.
This is a convenience wrapper around a ternary expression that makes it a little nicer to write an inline conditional without an else.
When
condition
is true, returns the result of callingtrueCase()
, else returns the result of callingfalseCase()
iffalseCase
is defined.This is a convenience wrapper around a ternary expression that makes it a little nicer to write an inline conditional without an else.