Ternary operator in Kotlin June 20, 2017 Ternary operator in Kotlin? In Kotlin, the if statement can be used like an expression. See below: val twoEqualThree = if (2 == 3) 5 else 6 Read more