alsoIfFalse

inline fun Boolean.alsoIfFalse(block: () -> Unit): Boolean(source)

Executes the given block if this Boolean is false and returns this Boolean. Similar to also, but only executes the block when the Boolean is false.

Return

This Boolean value

Parameters

block

The function to execute if this Boolean is false