how do I return/break to the next loop iteration `...
# announcements
k
how do I return/break to the next loop iteration
Copy code
loop@ for ((key, value) in jsonEvent.getObject("properties").content) {
    when (value) {
        is JsonArray -> {
        }
        is JsonPrimitive -> {
            value.booleanOrNull?.let {
                event.properties[key] = it
                return/break??
            }
        }
    }
}
b
i think you can do
continue@loop
k
nice. I ended up moving the inner code into a function anyway, which made it a non-issue
­čĹŹ 1