A while loop will execute as long as the condition is true.

var count = 1

while count < 10 {
    print("This is the \\(count) run of the loop")
    count += 1
}