Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

'Repeat' Freezes Codea

edited September 2015 in Bugs Posts: 28

Whenever i use 'repeat' and runs the code, codea freezes.
sorry i have no idea if it is called freezes or something else

Edit: Nevermind, Imgoing to use 'for' now

Tagged:

Comments

  • repeat is similar to a while loop, except it is guaranteed to run at least once. Here's the syntax:

    x = 0
    repeat
        x = x + 1
        print(x)
    until x >= 10
    

    It's paired with an until statement to make it stop looping. If you didn't use an until statement, or the value was always true, it'll freeze.

  • Posts: 28

    Thank you

Sign In or Register to comment.