Appendix A. CRBasic Programming Instructions
[ExitDo]
[statementblock]
Loop [{While | Until} condition]
EndSequence
Ends a sequence that starts at BeginProg or SlowSequence. An optional
instruction in many applications.
Syntax
EndSequence
Exit
Exits program.
Syntax
Exit
For / To / Step / ExitFor / Next
Repeats a group of instructions for a specified number of times.
Syntax
For counter = start To end [ Step increment ]
[statement block]
[ExitFor]
[statement block]
Next [counter [, counter][, ...]]
If / Then / Else / ElseIf / EndIf
Programs into or around a segment of code conditional on the evaluation of an
expression. Else is optional. ElseIf is optional. Note that EndSelect and EndIf
call the same function.
Syntax
If [condition] Then [thenstatements] Else [elsestatements]
-or-
If [condition 1] Then
[then statements]
ElseIf [condition 2] Then
[elseif then statements]
Else
[else statements]
EndIf
Scan / ExitScan / ContinueScan / NextScan
Establishes the program scan rate. ExitScan and ContinueScan are optional. See
Measurement: Faster Analog Rates
(p. 229) for information on use of Scan() /
NextScan in burst measurements.
546