Swift Tutorial - Tutorialspoint

(backadmin) #1

Syntax


The syntax for a continue statement in Swift is as follows:


continue

Flow Diagram


Example


import Cocoa

var index = 10

do{
index = index + 1

if( index == 15 ){
continue
}
println( "Value of index is \(index)")
}while index < 20
Free download pdf