switchCase

fun switchCase(vararg expressions: Expression): Expression

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

fun switchCase(block: Expression.ExpressionBuilder.() -> Unit): Expression

DSL function for "case".