If"' Then - Casio FX-730P Owner's Manual

Table of Contents

Advertisement

118
CHAPTER 6 Command Reference
I F
Conditi~nal express~on
TH EN
{Statement [
:
statement]*}
®
Companson expression
Branched
location
B
h d I
.
{ Line
No.
*
ranc e
ocat1on
#
N
program area
o.
Function:
When a conditional expression is
true,
the statements after THEN are executed.
Also, when a
statement after
THEN is
a
branched location, branching is per-
formed
.
Parameter:
Conditional
expression:
Line
No.
:
Program area No .:
Explanation:
Used in the form of a comparison expression.
1 to
9999.
0 to
9.
1) When
the
conditional expression is true, the statements
after
THEN are
executed or branching is performed.
2)
When
the conditional expression
is false,
the next line is
executed.
3) The related operators used in
a conditional
expression:
The
item on the
left
is
equal
to the item
on the
right.
\
The
item on the left is
not equal
to the item on the right.
<
The item on the right is
larger
than that on the
left.
>
The item on the right is smaller than that on the
left.
~
The
item on
the
right
is
larger than or
equal to that on the left.
2
The
item
on the
right is smaller than
or equal to that
on the left.
4) When two or more conditional
expressions exist, several IF
~
THEN state-
ments can be
written
sequentially.
IF-THEN IF-THEN
........................
..
.
5) Since
the
statements after
THEN
in
one
line
will
be executed
only
after
all
conditional expressions are
true,
statements to
be
executed regardless of the
conditional expression
must
be
written as a multistatement
before IF
or on a
separate
line.
*When
a
statement
exists after THEN, ";" can
be
used
instead
of THEN.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents