whatIfAnd

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

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

Return

Returns the desired type of object.

Parameters

predicate

A predicate value

whatIf

An executable lambda function if the Boolean and predicate are both not null and true.

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

An expression for operating And 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 And operation is true.

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

An expression for operating And 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 And operation is true.

whatIfNot

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