Specifications

Section 10. CRBASIC Programming Instructions
10-8
For ... Next
Repeats a group of instructions a specified number of times.
Syntax
For counter = start To end [ Step increment ]
[statementblock]
[ExitFor]
[statementblock]
Next [counter [, counter][, ...]]
If ... Then ... Else … ElseIf ... EndIf
EndSelect and EndIf call the same CR1000 function
Allows conditional execution, based on the evaluation of an expression. Else is
optional. ElseIf is optional.
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 … NextScan
Establishes the program scan rate. ExitScan is optional.
Syntax
Scan(Interval, Units, Option, Count)
...
Exit Scan
...
Next Scan
Select Case … Case … Case Is … Case Else … EndSelect
EndSelect and EndIf call the same CR1000 function
Executes one of several statement blocks depending on the value of an
expression. CaseElse is optional
Syntax
Select Case testexpression
Case [expression 1]
[statement block 1]
Case [expression 2]
[statement block 2]
Case Is [expression fragment]
Case Else
[statement block 3]
EndSelect
NOTE
NOTE