how can i force a `when` to continue to the next c...
# announcements
s
how can i force a
when
to continue to the next case even if the current case is valid for example
Copy code
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")
}
a
like the next ‘case’ ?
s
tried, could not find anything relating to my question
👎 3
r
👌 1