Jump to content
Wally1

GFA Basic questions

Recommended Posts

how do I create an endless loop,

just like

 

 

10 PRINT "HELLO"

20 GOTO 10

 

better still

how do I break out of a loop also

because there is no CONTROL-C (break)?

 

i know about DO...WHILE

 

 

 

Share this post


Link to post
Share on other sites

So, I don't know GFA basic but since there are no line numbers, a do-while is a perfect way to do an endless loop for sure but you also want to break out of said loop so I'd generally check for a key press of some sort to jump out.

Share this post


Link to post
Share on other sites
do
print "hello"
loop until inkey$<>""
Edited by ggn

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...