ifとwhen
val diceRoll = (1..6).random()
// if ~ else
if (diceRoll == 1) {
println("1")
} else if (diceRoll == 2) {
println("2")
}
// when
when (diceRoll) {
1 -> println("1")
2 -> println("2")
3 -> println("3")
4 -> println("4")
5 -> println("5")
6 -> println("6")
}