|
Tore Eriksson wrote:
>
> Here's a sample script that shows usage of WHILE and GOSUB:
>
> i=1
> while i<=5
> gosub :hello
> wend
> end
Ahh! Fantastic! Now, that was a great example, wasn't it?
Best thing with it was that the "Eternal loop" error check works... :)
Should of course be:
i=1
while i<=5
gosub :hello
i=i+1
wend
end
|
|
Message is in Reply To:
| | LDS ver 0.29
|
| (...) Done. WHILE-WEND done, too. (URL) a sample script that shows usage of WHILE and GOSUB: i=1 while i<=5 gosub :hello wend end :hello print 0 "Hello"; gosub world return :WORLD print "World." return /Tore (25 years ago, 26-Feb-00, to lugnet.cad.dev, lugnet.cad)
|
9 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|