Smallville7123
04/18/2019, 10:26 PMwhen
to continue to the next case even if the current case is valid
for example val x = true
val y = 1
when(x) {
true -> when(y) {
1 -> // go to else of when(x) and not else of when(y), since false of when(x) will not match true
else -> println("pass")
}
false -> println("statement")
else -> println("fail")
}
asad.awadia
04/18/2019, 10:28 PMRuckus
04/18/2019, 10:29 PMRuckus
04/18/2019, 10:29 PMRuckus
04/18/2019, 10:33 PMSmallville7123
04/18/2019, 10:42 PMrook
04/19/2019, 2:31 PM