Available on: all targets ✓ verified

REM

The REM keyword is used to include explanatory remarks in the source code of a program. In the text of any comment you want to include, that is optional, a space is required between the REM keyword and comment.

You can put a REM statement alone on a line, or you can put it on a line following another statement . The REM statement must be the last statement on the line. If it follows another statement, the REM must be separated from that statement by a colon (:).

You can use a single quotation mark (') instead of REM. This is true whether your comment follows another statement on the same line or sits alone on a line. However, you cannot continue a REM statement by using a line-continuation sequence (_). This means that, for a multiple-line comment, you need to use as many REMs statements as the lines you comment.

SYNTAX

 REM [comment]
 ' [comment]


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 REM this is a comment
 ' and this is a comment
 PRINT "ok": REM I am printing ok


Any problem?

If you have found a problem with this keyword, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!

open an issue BACK TO KEYWORDS