EasyManua.ls Logo

CipherLab 8200

CipherLab 8200
263 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
Loading...
22
CipherLab BASIC Programming Part I
3.3.3 RELATIONAL OPERATOR
Relational operators are used to compare two values. The result of the comparison is
either True or False. This result may then be used to make a decision regarding
program flow.
Operator
Operation
Sample Expression
=
Equality
A% = B%
< >
Inequality
A% < > B%
> <
Inequality
A! > < B!
>
Greater than
A% > B!
<
Less than
A! < B!
> =
Greater than or equal to
A% > = B%
< =
Less than or equal to
A% < = B%
3.3.4 LOGICAL OPERATOR
Logical operators perform tests on multiple relations and Boolean operations. The logical
operator returns a bit-wise result which is either True (not zero) or False(zero). In an
expression, logical operations are performed after arithmetic and relational operations.
Operator
Operation
Sample Expression
NOT
Logical negation
IF NOT (A% = B%)
AND
Logical and
IF (A% = B%) AND (C% = D%)
OR
Inclusive or
IF (A% = B%) OR (C% = D%)
XOR
Exclusive or
IF (A% = B%) XOR (C% = D%)

Table of Contents

Other manuals for CipherLab 8200

Related product manuals