Program Commands (Com); If~Then~(Else~)Ifend; For~To~(Step~)Next - Casio Algebra FX 2.0 PLUS User Manual

Hide thumbs Also See for Algebra FX 2.0 PLUS:
Table of Contents

Advertisement

k Program Commands (COM)

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:
If
numeric expression
Parameters: condition, numeric expression
Description:
(1) If ~ Then ~ IfEnd
• When the condition is true, execution proceeds with the Then-statement and then
continues with the statement following IfEnd.
• When the condition is false, execution jumps to the statement following IfEnd.
(2) If ~ Then ~ Else ~ IfEnd
• When the condition is true, execution proceeds with the Then-statement and then jumps
to the statement following IfEnd.
• When the condition is false, execution jumps to the Else-statement and then continues
with the statement following IfEnd.

For~To~(Step~)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 changed according to the step value with each execution.
Execution continues until the value of the control variable exceeds the ending value.
Syntax:
For <starting value> → <control variable name> To <ending value> Step <step value>
Next
Parameters:
• control variable name: A to Z
• starting value: value or expression that produces a value (i.e. sin
• ending value: value or expression that produces a value (i.e. sin
• step value: numeric value (default: 1)
8-5-4
Command Reference
_
<condition>
:
^
_
:
Else <statement>
^
Then <statement>
_
<statement>
:
^
19990401
_
<statement>
:
^
_
IfEnd
:
^
_
:
^
x
, A, etc.)
x
, A, etc.)

Advertisement

Table of Contents
loading

Table of Contents