janvladimirmostert
02/07/2017, 9:31 PMval k : String? = while (i != 3) {
....
if (...) {
break "SomeValue"
}
...
} ?: "DefaultValue"
In which case only a value is returned on break otherwise k stays uninitialized unless you use the elvis.