ifTrue

inline fun Boolean?.ifTrue(action: () -> Unit): Boolean

Calls the supplied action if the receiver is true.

Return

true if the receiver is true, false otherwise.

Parameters

action

The action to invoke if the receiver is true.