``` fun <R> Boolean.then(block: () -> R):...
# announcements
g
Copy code
fun <R> Boolean.then(block: () -> R): R? {
    return if (this) block()
    else null
}
Is what I did