Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

While Command


  • Please log in to reply
2 replies to this topic
beardboy
  • Members
  • 443 posts
  • Last active: May 27 2017 08:41 AM
  • Joined: 02 Mar 2004
Have you thought of adding a WHILE command?

thanks,
beardboy

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
I have, but I wanted to keep the syntax simple. A While-loop would be equivalent to a Loop whose first line is an IF-statement, such as this:

Loop
{
     if finished = Y
          break
     ....
}

Similarly, a do...while construct would be the same as the above except with the check condition at the bottom of the loop.

Maybe this is something I should add to the documentation.

beardboy
  • Members
  • 443 posts
  • Last active: May 27 2017 08:41 AM
  • Joined: 02 Mar 2004
What is really stupid is I have multiple places in my code that I have done that.

thanks,
beardboy