GOLF(2gg)
β¨ 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 astart-loop,run-query, orread-linestatement. 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
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms