From Liberty BASIC Family
Jump to navigation Jump to search
Supported in Just BASIC Supported in Liberty BASIC Not supported in Liberty BASIC 5 Not supported in Run BASIC


Rem informs Just BASIC to ignore the line when compiling and running a program. It must be placed at the beginning of a line.
Rem is used to place comments into the code. It has been made somewhat obsolete by the use of the apostrophe (') to signify comments in code.


  1. rem - a comment may follow


Rem can be placed on the same line after a code statement to make a comment or explanation of the code as long as the Rem is preceded by a colon (:). e.g.:
A=int(rnd(1)*10)+1 :rem monsters chance to hit you


print "This is a test of the REM statement."
rem print "Don't print this line." :rem this line won't print
print "Print this line instead."

Useful Procedures

' Place a useful function or sub using this keyword here