Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Nilcky

Loop coding error

Question

I was trying to make a loop in the coding by doing while true do like i had seen on the forms but every time it came out with an error (error posted below) I'm new to coding and would appreciate any advice you can give on the subject 

Thank you ahead of time

   coding.PNG.8dfefd5ecafdb3fbf3fb343fe20651db.PNG913862896_coding23.PNG.c7960890e8da207ae901a2a4c2201608.PNG

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1

Line 4 of your script requires an 'end' to close the 'if' statement. The error mentions that the 'while' clause needs an 'end', but that's just because the interpreter thinks the 'end' on line 6 belongs if the 'if'.

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   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...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.