# Case

class Case(val value: Expression<*>? = null)

Represents an SQL function that allows the comparison of value to chained conditional clauses.

If value is not provided, each chained conditional will be evaluated independently.

## Constructors

Case
Link copied to clipboard
constructor(value: Expression<*>? = null)

## Properties

value
Link copied to clipboard
val value: Expression<*>? = null

The value that is compared against every conditional expression.

## Functions

When
Link copied to clipboard
fun <T> When(cond: Expression<Boolean>, result: Expression<T>): CaseWhen<T>

Adds a conditional expression with a result if the expression evaluates to `true`.