'Repeat' Freezes Codea

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

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

x = 0
    x = x + 1
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.

Thank you