To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 3562
3561  |  3563
Subject: 
Re: LDS ver 0.29
Newsgroups: 
lugnet.cad.dev, lugnet.cad
Date: 
Sat, 26 Feb 2000 11:28:47 GMT
Viewed: 
40 times
  
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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR