Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

continue keyword in swift language

var songs = ["Shake it Off", "You Belong with Me", "Look What You Made Me Do"]

for song in songs {
    if song == "You Belong with Me" {
        continue
    }

    print("My favorite song is (song)")
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #continue #keyword #swift #language
ADD COMMENT
Topic
Name
5+4 =