Kotlin more than two condition assignment

PHOTO EMBED

Fri Jun 17 2022 08:12:00 GMT+0000 (Coordinated Universal Time)

Saved by @tonystark

var greeting = when(name) {
    	null -> "hello human"
        "Jhon" -> "Jhon Connor?"
        else -> "hello " + name
    }
    
    println(greeting)
content_copyCOPY

https://play.kotlinlang.org/