GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

✨ GOLF(2gg) β€” the continue-loop page, bestie edition ✨

okay so you're deep in the GOLF(2gg) manual, section 2gg, and this little icon is about to change your whole loop game. it's giving "Development" era, it's giving program-flow, it's giving continue-loop. let's go πŸ’–


🌸 NAME 🌸

continue-loop β€” (program-flow)

🎯 PURPOSE 🎯

Continue to the top of a loop.

no like literally that's the whole job and she does it flawlessly πŸ’…

πŸ“œ SYNTAX πŸ“œ

continue-loop

that's it. no args. no flags. no drama. she's a one-line queen πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

continue-loop will continue execution at the top of the loop at start-loop, run-query, or read-line statements.

so basically: you're inside a loop, you hit this bad boy, and instead of finishing the rest of the loop body you just yeet yourself back up to the top and let the loop do its thing again. main character energy fr fr ✨

bestie note: it jumps to the top of the loop that lives at a start-loop, run-query, or read-line statement. those three, that's the whole list, no cap.

🌈 EXAMPLES 🌈

ok so say you wanna skip the processing if it's the loop #300. absolutely valid. here's how:

define-number cont_loop = 300
start-loop repeat 1000 use i start-with 1
    if-true i equal cont_loop
        continue-loop
    end-if
    @Completed <<print-out i>> loops so far
end-loop

see what's happening?? when i equals cont_loop (which is 300, in case you weren't tracking), continue-loop fires and the loop skips straight past the @Completed <<print-out i>> loops so far line for that iteration. iteration 300 said not today and honestly? respect πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

Program flow

break-loop call-handler code-blocks continue-loop do-once exit-handler if-defined if-true quit-process return-handler start-loop See all documentation

iykyk, go read the whole program-flow fam, they're all iconic together 🫢


and that's the page, bestie!! this was $VERSION, dated $DATE, and yes the manual page really is called GOLF(2gg) β€” slay πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from