case

open fun <T> case(vararg branches: ExpressionScope.CaseBranch<T>, fallback: Expression<T>): Expression<T>

Selects the first output whose corresponding test condition evaluates to true, or the fallback value otherwise.