runT

infix fun Boolean.runT(t: () -> Unit): Boolean

Executes a function if the Boolean value is true.

Return

The Boolean value itself.

Parameters

t

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