goboscript icon indicating copy to clipboard operation
goboscript copied to clipboard

C-style for loop implemented using repeat-until

Open aspizu opened this issue 11 months ago • 4 comments

for loop implemented using repeat-until

Note: The condition is a until condition, not a while condition

for x = 1; x > 10; x++ {
    # stmts...
}

aspizu avatar Feb 01 '25 11:02 aspizu

Hey @aspizu 👋 could I take this? (coming from onlydust)

ryangchung avatar Jul 22 '25 19:07 ryangchung

there is already a PR that closes this, but its outdated, feel free to give this a try if you want to.

aspizu avatar Jul 22 '25 19:07 aspizu

the for loop is partially already a block btw (only for step=1 tho)

forLoop.sb3.zip

RixInGithub avatar Jul 23 '25 06:07 RixInGithub

the for loop is partially already a block btw (only for step=1 tho)

forLoop.sb3.zip

he knows. it also behaves in a pretty weird way

faretek1 avatar Jul 23 '25 20:07 faretek1