REM

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

Description

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.

Syntax

  1. rem - a comment may follow

Hints

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

Example

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

Useful Procedures

' Place a useful function or sub using this keyword here