whatIfOr

inline fun Boolean?.whatIfOr(predicate: Boolean?, whatIf: () -> Unit): Boolean?

An expression for invoking whatIf when the target Boolean is true or the predicate is true.

Return

Returns the desired type of object.

Parameters

predicate

A predicate value.

whatIf

An executable lambda function if the Boolean or predicate is not null and true.

inline fun Iterable<Boolean?>.whatIfOr(whatIf: () -> Unit): Iterable<Boolean?>

An expression for operating Or operator to a list of the nullable-Boolean.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the result of the Or operation is true.

inline fun Iterable<Boolean?>.whatIfOr(whatIf: () -> Unit, whatIfNot: () -> Unit): Iterable<Boolean?>

An expression for operating Or operator to a list of the nullable-Boolean.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the result of the Or operation is true.

whatIfNot

An executable lambda function if the result of the Or operation is false.