Control flow / Interruption of a control flow

val numbers = arrayOf(235711131719)
var str = ""
for (i in numbers.indices) {
    if (i%2 == 1) {
        continue
    }
    if (str.isNotEmpty()) {
        str += "-"
    }
    str += numbers[i]
}
//str is "2-5-11-17"

println("str is $str")