375
Command Reference
20- 11
If~Then~Else~IfEnd
Function:
The Then-statement is executed only when the If-condition is true
(non-zero). The Else-statement is executed when the If-condition is false (0). The
IfEnd-statement is always executed following either the Then-statement or
Else-statement.
Syntax:
Parameters:
condition, numeric expression
Description:
This command is almost identical to If~Then~Else. The only difference is that the
IfEnd-statement is always executed, regardless of whether the If-condition is true
(non-zero) or false (0).
Example:
?
→
A
_
If A = 0
_
Then ”TRUE”
_
Else ”FALSE
_
IfEnd
_
”END”
For~To~Next
Function:
This command repeats everything between the For-statement and the
Next-statement. The starting value is assigned to the control variable with the first
execution, and the value of the control variable is incremented by one with each
execution. Execution continues until the value of the control variable exceeds the
ending value.
Syntax:
If
<condition>
_
:
^
Then <statement>
_
:
^
<statement>
numeric expression
_
:
^
Else <statement>
_
:
^
<statement>
_
:
^
IfEnd
_
For <starting value>
→
<control variable name> To <ending value>
:
^
_
<statement>
:
Next
^
Summary of Contents for CFX-9850G PLUS
Page 23: ... fx 9750G PLUS CFX 9850G PLUS CFX 9850GB PLUS CFX 9850GC PLUS CFX 9950GB PLUS ...
Page 28: ...xxvi Contents ...
Page 100: ...72 ...
Page 126: ...98 ...
Page 170: ...142 ...
Page 180: ...152 ...
Page 208: ...180 ...
Page 220: ...192 ...
Page 232: ...204 ...
Page 348: ...98 ...
Page 438: ...410 ...
Page 449: ...421 1 2 3 4 5 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 450: ...422 Program for Circle and Tangents No 4 Step Key Operation Display 6 7 8 9 10 ...
Page 451: ...423 11 12 13 14 15 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 452: ...424 16 17 18 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 455: ...427 1 2 3 4 5 Program for Rotating a Figure No 5 Step Key Operation Display ...
Page 484: ...456 ...