case

open fun case(value: Expression<*>? = null): Case

Compares value against any chained conditional expressions.

If value is null, chained conditionals will be evaluated separately until the first is evaluated as true.

Samples

org.jetbrains.exposed.sql.tests.shared.dml.ConditionsTests.nullOpInCaseTest