Relational Operator; Logical Operator - CipherLab 8 Series User Manual

Hide thumbs Also See for 8 Series:
Table of Contents

Advertisement

CipherLab BASIC Programming

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
=
< >
> <
>
<
> =
< =

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
NOT
AND
OR
XOR
22
Part I
Operation
Equality
Inequality
Inequality
Greater than
Less than
Greater than or equal to
Less than or equal to
Operation
Logical negation
Logical and
Inclusive or
Exclusive or
Sample Expression
A% = B%
A% < > B%
A! > < B!
A% > B!
A! < B!
A% > = B%
A% < = B%
Sample Expression
IF NOT (A% = B%)
IF (A% = B%) AND (C% = D%)
IF (A% = B%) OR (C% = D%)
IF (A% = B%) XOR (C% = D%)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

83008000840087008200

Table of Contents