"WHILE... WEND" was the only provided way by GW-BASIC to do loops without relying on "GOSUB/RETURN" and "GOTO".
Nope! For... Next was in there first even before While... Wend
Dartmouth BASIC - Wikipededia
Nope! For... Next was in there first even before While... Wend
Dartmouth BASIC - Wikipededia
Quote:List of BASIC statements
DEF
define single line functions
DIM
(short for dimension) define the size of arrays
END
define the end of the program
STOP
stop a program before the textual end
FOR / TO / STEP
define loops
NEXT
mark the end of loops
GOSUB
transfer control to simple subroutines
RETURN
return control from simple subroutines
GOTO
transfer control to another statement
IF / THEN
decision making
LET / =
assign formula results to a variable
output results
DATA
store static data within the program
READ
input data stored in DATA statements
REM
comment ("REMark")
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever

