outcome

fun <T> Boolean.outcome(whenTrue: T, whenFalse: T): T

Returns the value corresponding to the outcome