do ... loop

Repeat a block of commands forever.

Syntax:
do
        commands
        {exit do}
loop

The commands between do statement and loop statement are executed each iteration through the loop.

Example:
-- this portion of code will be executed forever. press ctrl+c to terminate it.
n=0
do
    n=n+1
    PrintS( n )
    waitVBL
loop

See also exit do commands.