# ValueCaseWhenElse

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

#### Parameters

value

The expression whose value is compared in WHEN clauses

cases

The list of condition-result pairs for WHEN clauses

elseResult

The result expression for the ELSE clause

#### Type Parameters

T

The type of the value being compared

R

The return type of the CASE expression