Kotlin Ternie
if (a) b else c
println(if (true) "yes" else "no") // "yes"
println(if (false) "yes" else "no") // "no"
Promofo
if (a) b else c
println(if (true) "yes" else "no") // "yes"
println(if (false) "yes" else "no") // "no"
return (!response.isSuccessful()) ? "fail" : response.body().string()