elect
if - else
if
val list = if(student != null && student.passing) getListForStudent(student) else getStandardList()
marcinmoskala
when
val list = when { student != null && student.passing -> getListForStudent(student) else -> getStandardList() }
cedric
val a = if (foo) 1 else 2
A modern programming language that makes developers happier.