It is helpful to add comments or "REMarks" to your program. There are two ways to do this.

The first is the Rem statement:

REM [comment]

The Second is the single quote ' shorthand rem.

' [comment]

A single quote may be used at the end of lines.

For Example:

Rem This is a comment

' This is also a comment

a = 0 ' apple counter
b = 0 ' bean counter
for i = 0 to 100
a = a + i ' add apples to apples
next i

Do not put a comment at the end of a line label.

MyLabel: ' This will generate an error

Become a Patron