kotlin ternary operator alternative code example
Example: Kotlin ternary
if (a) b else c
println(if (true) "yes" else "no") // "yes"
println(if (false) "yes" else "no") // "no"
if (a) b else c
println(if (true) "yes" else "no") // "yes"
println(if (false) "yes" else "no") // "no"