whatIfElse

inline fun Boolean?.whatIfElse(whatIf: () -> Unit): Boolean?

An expression for invoking whatIf when the target object is not null and false.

Return

Returns the desired type of object.

Parameters

whatIf

An executable lambda function if the Boolean is null or false.