kytschBASIC

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

CASE

CASE conditional statement.

Example

iLoop=10
WHILE iLoop>0
	SELECT iLoop
		CASE 2
			PRINT iLoop
			LINE BREAK
		CASE 4
			PRINT iLoop
			LINE BREAK
	END SELECT
	LET iLoop=iLoop-1
WEND

Output

iLoop
iLoop

See also