Evaluation Of Combined Expressions - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

EVALUATION OF COMBINED EXPRESSIONS
A relational expression and an arithmetic expression
can be written as a data item in a logical expression,
and an arithmetic expression can be written as a data
item in a relational expression.
So, a combination of
different expression is performed in the order of 1)
arithmetic expression, 2) relational expression, and 3)
logical expression.
V/hen A=1, B=2, C=2 and D=1, the evaluation result ofthe
following expression will become -1.
tion following these steps:
With the evalua-
A + B = C + D OR (A - B) «C AND D
4
1
2
5
6
I
7
Please note that
used in the LET statement
as a relational operator are different in meaning.
and n="
Example
(0 is assigned to A)
(-1 is assigned to C when B=0
0 is assigned to C when B=1)
>10 LET A = 2 = 3
>20 LET C = B = 1
3-28

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents