Talk:Petit Tutorials - GOTO and IF/@comment-173.217.33.127-20140101014608

I'm having trouble with IF and GOTO

My working code looks like this:

CLS

PRINT:PRINT "FIRST ROLL"

WAIT 100

y=RND(5)+1:z=RND(5)+1

PRINT:PRINT Y:WAIT 20:PRINT,Z:PRINT

WAIT 100

T=y+z" PRINT "TOTAL-";T

REM This is where things go wrong

IF t=2 THEN GOTO @bad

IF t=3 THEN GOTO @bad

Whenever I run the program, it always says "Syntax error (40, IF)"

Is there any salvation? Thank you.