Adds a remark (comment) to your program. The interpreter ignores the rest of the line after REM.
Behaviour
- Everything from REM to the end of the line is treated as a comment.
- REM has no runtime effect and produces no output.
- You can place REM anywhere a statement is allowed (for example between executable lines).
Examples
Simple comment
REM This program draws a box
GCOL RGB(0,255,0)
RECTANGLE 50, 50, 200, 120
Temporarily disable a line
REM PRINT "Debug: entering main loop"
Empty remark (acts like a labelled blank line)
Tips
- Use consistent prefixes in your comments (e.g. REM TODO: or REM NOTE:) to make them easy to search for.
- Keep comments adjacent to the code they describe so they stay in sync as the program evolves.