REM

BASin

REM REMark

Statement

REM is used to put remarks or reminders into your program. These may be the title and author of the program, and explanations of lines in the program such as the purpose of a variable. The remarks play no part in the running of the program and can be seen only in the listing.

How to use REM

REM forms either a line of its own in a program or the last statement in a line. It is followed by any remark that can be keyed in as required, for example

80 INPUT n$: REM n$ is a name

When the BASIC encounters REM, it ignores everything that follows REM on the line.

Format

  • REM any characters

See also

Chapter 2.