kytschBASIC

Put down that phone!
Please view me on real computer.

WHILE

Create a while loop.

Example

DEF iLoop%=10

WHILE (iLoop%>0)

	PRINT iLoop%

	LINE BREAK

	LET iLoop%=(iLoop%-1)

WEND

LINE BREAK

LET iLoop%=1

WHILE (iLoop%<=10)

	PRINT iLoop%

	LINE BREAK

	LET iLoop%=(iLoop%+1)

END WHILE

Output

10
9
8
7
6
5
4
3
2
1

1
2
3
4
5
6
7
8
9
10

See also