RETURN without GOSUB
Posted: Thu Aug 06, 2015 4:46 pm
I am creating a program with multiple libraries and I keep getting this error. It would be too long to post a peice of the code for my program, so I wrote a little sample program that basically does the same thing:
TEST2.txt just says to print "winner" and TEST3.txt just says to print "loser"
Code: Select all
b = 5
a = 3
IF b > a THEN
GOSUB bwins
ELSE
IF a > b THEN
GOSUB bloses
END IF
END IF
bwins:
{Test2.txt}
RETURN
bloses:
{Test3.txt}
RETURN