145
Programming
Chapter 8
Description:
1. Operation of the carriage return is identical to that of the multi-statement com-
mand.
2. Using a carriage return in place of the multi-statement command makes the dis-
played program easier to read.
k
k
k
k
k
Program Commands (COM)
If~Then
Function:
The Then-statement is executed only when the If-condition is true (non-
zero).
Syntax:
Parameters:
condition, numeric expression
Description:
1. The Then-statement is executed only when the If-condition is true (non-zero).
2. If the condition is false (0), the Then-statement is not executed.
3. An If-condition must always be accompanied by a Then-statement. Omitting the
Then-statement results in an error (Syn ERROR).
Example:
If A = 0
_
Then ”A = 0”
If~Then~IfEnd
Function:
The Then-statement is executed only when the If-condition is true (non-
zero). The IfEnd-statement is always executed: after the Then-statement is executed
or directly after the If-condition when the If-condition is false (0).
Syntax:
Parameters:
condition, numeric expression
Description:
This command is almost identical to If~Then. 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:
If A = 0
_
Then ”A = 0”
_
IfEnd
_
”END”
If
<condition>
_
:
^
Then <statement>
numeric expression
_
:
^
<statement>
_
:
^
IfEnd
_
_
If
<condition>
:
Then <statement>
:
<statement>
numeric expression
^
^
Summary of Contents for fx-7400G PLUS
Page 7: ... fx 7400G PLUS ...
Page 14: ...xii Contents ...
Page 57: ...Differential Calculations Chapter 3 ...
Page 176: ...162 Chapter 8 Programming ...
Page 188: ...Chapter 9 Data Communications 174 ...
Page 199: ...185 1 2 3 4 5 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 200: ...186 Program for Circle and Tangents No 4 Step Key Operation Display 6 7 8 9 10 ...
Page 201: ...187 11 12 13 14 15 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 202: ...188 16 17 18 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 205: ...191 1 2 3 4 5 Program for Rotating a Figure No 5 Step Key Operation Display ...