REM (Statement)


Declare the remainder of a program line to be remarks or comments.


{REM|'}[<comment>]


This statement causes <comment> to be treated as a programmer's remark or comment. Character strings following the REM are ignored and non-executable.
A single quote (') can be used instead of REM.


REM Evaluate more than one condition
SELECT CASE Index
'If the index value and the CASE statement value match,
'the command executes
CASE 0
'If the index is 0
STOP
'Stop program execution
CASE 1
'If the index is 1
HALT "STOP"
'Stop program execution
CASE 2
'If the index is 2
HOLD "STOP"
'Stop program execution temporarily
CASE 3
'If the index is 3
STOPEND
'Cycle-stop a continuously executed program
CASE 4
'If the index is 4
END
'Declare the end of motion executed by the program
END SELECT
'Declare the end of conditions evaluation statement


Top