kytschBASIC

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

IF

IF conditional statement.

Example

FOR iLoop=1 to 10
	IF iLoop=2 THEN
		PRINT iLoop
		PRINT " | "
	ELSEIF iLoop=4 THEN
        PRINT iLoop
		PRINT " | "
	ELSEIF iLoop=6 THEN
        PRINT iLoop
		PRINT " | "
	END IF
NEXT iLoop
LINE BREAK
FOR iLoop=1 to 10
	IF iLoop=2 THEN PRINT iLoop
	ELSEIF iLoop=4 THEN PRINT iLoop
	ELSEIF iLoop=6 THEN PRINT iLoop
	END IF
NEXT iLoop

Output

2 | 4 | 6
246

See also