EasyManuals Logo

Casio CFX-9850G PLUS Programming Guide

Casio CFX-9850G PLUS
48 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 #25 background imageLoading...
Page #25 background image
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
^

Other manuals for Casio CFX-9850G PLUS

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio CFX-9850G PLUS and is the answer not in the manual?

Casio CFX-9850G PLUS Specifications

General IconGeneral
Display TypeLCD
Display Size128 x 64 pixels
Graphing CapabilityYes
ProgrammingYes, BASIC-like language
Memory32 KB
Power Source4 AAA batteries

Related product manuals