Kotlin is very expressive language, but like Scala it lacks of ternary operator. Currently language provided alternative if
looks a bit verbose.
val result = if (myExpression) 1 else 2
Compared to a classical Java or C++ variant
int result = myExpression ? 1 : 2