|
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:
![](/news/x.gif) | | 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 (24 years ago, 26-Feb-00, to lugnet.cad.dev, lugnet.cad)
|
9 Messages in This Thread: ![LDS ver 0.27 - Great News! -Tore Eriksson (17-Feb-00 to lugnet.cad, lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![LDS ver 0.28 -Tore Eriksson (23-Feb-00 to lugnet.cad, lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDS ver 0.28 -Alex Farlie (24-Feb-00 to lugnet.cad, lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: LDS ver 0.28 -Todd Lehman (24-Feb-00 to lugnet.cad, lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDS ver 0.28 -Tore Eriksson (24-Feb-00 to lugnet.cad, lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDS ver 0.28 -Steve Bliss (25-Feb-00 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: LDS ver 0.28 -Tore Eriksson (25-Feb-00 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![LDS ver 0.29 -Tore Eriksson (26-Feb-00 to lugnet.cad.dev, lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|