whenTrue

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

Executes block iff this (result of previous method) is true. Returns given Boolean.