EasyManuals Logo

Casio fx-7400G User Manual

Casio fx-7400G
186 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #140 background imageLoading...
Page #140 background image
137
Programming Chapter 8
If~Then~Else
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).
Syntax:
Parameters: condition, numeric expression
Description:
1. The Then-statement is executed when the If-conditions is true (non-zero).
2. The Else-statement is executed when the If-conditions is false (zero).
Example: If A = 0 _
Then ”TRUE” _
Else ”FALSE”
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”
If
<condition>
_
:
^
Then <statement>
_
:
^
<statement>
numeric expression
_
:
^
Else <statement>
_
:
^
<statement>
If <condition>
_
:
^
Then <statement>
_
:
^
<statement>
numeric expression
_
:
^
Else <statement>
_
:
^
<statement>
_
:
^
IfEnd

Table of Contents

Other manuals for Casio fx-7400G

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio fx-7400G and is the answer not in the manual?

Casio fx-7400G Specifications

General IconGeneral
Modelfx-7400G
Memory28 KB
Graphing CapabilitiesYes
DisplayMonochrome
ProgrammingYes, BASIC-like language

Related product manuals