rockerhieu
06/26/2017, 2:21 PMif (condition) a else b
?thuanle
06/26/2017, 4:51 PMthuanle
06/27/2017, 4:05 AMthuanle
06/27/2017, 4:05 AMIn Kotlin, if is an expression, i.e. it returns a value. Therefore there is no ternary operator (condition ? then : else), because ordinary if works fine in this role.