runF

infix fun Boolean.runF(f: () -> Unit): Boolean

Executes a function if the Boolean value is false.

Return

The Boolean value itself.

Parameters

f

The function to execute if the Boolean value is false. Defaults to an empty function.