(continued) IF I>3 THEN:PRINT "Hello, world!":IF I>4 THEN:PRINT "Sample text":ENDIF:PRINT "Hi" (you don't need to put an ENDIF on your if statement unless you want to put something after the if) This is completely okay: IF I>3 THEN PRINT "A" IF I>4 THEN:PRINT "B" ENDIF This is not okay (afaik, but it looks awful and you shouldn't use it): IF I>3 THEN:PRINT "A":IF I>4 THEN PRINT "B" ENDIF