Skip to content

cotrWhen

Creates a when expression

Aliases:

  • cotrWhen

kotlin

when (variable) {
value1 -> {
// Your code here
}
value2 -> {
// Your code here
}
else -> {
// Your code here
}
}