Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REPEAT UNTIL (solved)
#1
Hi

I'd like to use the Pascal mode because it's simpler:


Code:
REPEAT
    [<sentences>]
UNTIL <condition>




I dont like to use:

Code:
DO
    [<sentences>]
LOOP UNTIL <condition>
Reply
#2
It's the standard Syntax for most modern BASIC languages nowadays:

FreeBasic: https://www.freebasic.net/wiki/KeyPgLoop
Visual Basic .NET: https://learn.microsoft.com/en-us/dotnet...-statement
Reply
#3
(11-29-2022, 03:28 PM)boriel Wrote: It's the standard Syntax for most modern BASIC languages nowadays:

FreeBasic: https://www.freebasic.net/wiki/KeyPgLoop
Visual Basic .NET: https://learn.microsoft.com/en-us/dotnet...-statement


Then, I will do it with #define :


Code:
#define REPEAT  DO
#define UNTIL   LOOP UNTIL

REPEAT
  Game
UNTIL GameOver
Reply
#4
(11-30-2022, 10:37 AM)zarsoft Wrote:
(11-29-2022, 03:28 PM)boriel Wrote: It's the standard Syntax for most modern BASIC languages nowadays:

FreeBasic: https://www.freebasic.net/wiki/KeyPgLoop
Visual Basic .NET: https://learn.microsoft.com/en-us/dotnet...-statement


Then, I will do it with #define :


Code:
#define REPEAT  DO
#define UNTIL   LOOP UNTIL

REPEAT
  Game
UNTIL GameOver

Very smart!! Cool
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)