Command Reference
kProgram Commands (COM)If~Then~(Else~)IfEnd
Function: The
Syntax:
|
|
|
| _ |
|
|
|
|
| _ |
|
|
| |
If | <condition> | : | Then <statement> | : | <statement> | |||||||||
| numeric expression | ^ |
|
|
|
| ^ |
|
|
| ||||
| _ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Else <statement> | _ | <statement> | _ | IfEnd | ||||||||
| : |
| : | : | ||||||||||
| ^ |
|
|
|
|
| ^ |
|
|
|
| ^ |
|
|
Parameters: condition, numeric expression
Description:
(1)If ~ Then ~ IfEnd
•When the condition is true, execution proceeds with the
•When the condition is false, execution jumps to the statement following IfEnd.
(2)If ~ Then ~ Else ~ IfEnd
•When the condition is true, execution proceeds with the
•When the condition is false, execution jumps to the
For~To~(Step~)Next
Function: This command repeats everything between the
Syntax:
For <starting value> → <control variable name> To <ending value>
_
Step <step value> : Next
^
Parameters:
•control variable name: A to Z
•starting value: value or expression that produces a value (i.e. sin x, A, etc.)
•ending value: value or expression that produces a value (i.e. sin x, A, etc.)
•step value: numeric value (default: 1)
20050401