CaseWhenElse

constructor(cases: List<Pair<Expression<*>, Expression<out T>>>, elseResult: Expression<T>)

Parameters

T

The return type of the CASE expression

cases

The conditions to check and their results if met

elseResult

The result if none of the conditions are found to be true