Canon Cat Reference Manual page 80

Hide thumbs Also See for Cat:
Table of Contents

Advertisement

Logical Operators
The Cat has six
logical
operators that
can be used to
make
decisions
within
expressions.
When calculated, they re-
turn
a
result
of
I
or
0:
I
means
the
expression
is true, 0
means
it
is
false.
When an expression
has
more
than one
logical
operator,
parentheses
will
ensure
that
the
expressions
are
evaluated
in
the
correctorder.
The examples
forAND
and
OR
below
show
how you might
use parentheses.
right of
the
"<"
and
rpturns a
I if
the
left-hand
expression
is
less
than
the
right-hand
expression.
>
Greater than.Evaltates
the
expressions to
the
left
and
the
right of
the
">"
and
returns a
1
if
the
left-hand
expression
is greater than
the
right-hand
expression.
Equal.
Evaluates the expressions
to
the
left
and the
right
and
returns a
1
ifthe
left-hand
expression is equal
to
the
right-hand
expression.
Logical
NOT.
Inverts
the result
of
the
logical
operation which
follows
the
-,
turning
I
to
0
and
0
to
l.

Advertisement

Table of Contents
loading

Table of Contents