R - Repeat

Syntax

repeat {
    # Statement
    if(condition) break
}

Example

i=0
repeat {
    print("Hello World")
    i=1+i
    if(i>=3) break
}
[1] "Hello World"
[1] "Hello World"
[1] "Hello World"

Powered by ComboStrap