Casio fx-9750G Manual page 27

19. programming
Hide thumbs Also See for fx-9750G:
Table of Contents

Advertisement

3. You can also use a carriage return indicated by _ in place of the multi-statement
command.
_ (Carriage Return)
_
_
_
_
Function: Connects two statements for sequential execution without stopping.
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:
If
<condition>
numeric expression
Parameters: condition, numeric expression
Description:
1. The Then-statement is executed only when the 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:
If
<condition>
numeric expression
Parameters: condition, numeric expression
Command Reference
_
:
Then <statement>
^
_
Then <statement>
:
^
_
:
<statement>
^
19 - 11
_
:
<statement>
^
_
:
IfEnd
^
339

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents