Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

while loop in swift

var counter = 0

while true {
    print("Counter is now (counter)")
    counter += 1

    if counter == 556 {
        break
    }
}
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #loop #swift
ADD COMMENT
Topic
Name
2+3 =