here's another example:

set list hw
add hello, to list hw
add world! to list hw
set number i as 0
if #i#==2 then goto 9
add 1 to i
say "%hw|#i#%"
goto 5
say "hello world complete"

it prints

hello,
world!
hello world complete