EasyManuals Logo
Home>Atari>Desktop>800

Atari 800 Basic Reference Manual

Atari 800
122 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
Page #15 background imageLoading...
Page #15 background image
OPERATOR
PRECEDENCE
AND
OR
Logical
AND
Logical OR
Examples:
10
IF
A=12
AND
T=0
THEN
F'RWT
"Q)00
11
Both expressions
must
be true before GOOD is
printed.
10
A=(C>l)
AND
(N<1)
10
A =
(C+l)
OR
Ol-1)
Hi
A =
NOT<
C+
1 )
If
both
expressions
true,
A=
+
1;
otherwise
A=O.
If
either expression
true, A=
+
1;
otherwise
A=O.
If
expression is false,
A=
+
1;
otherwise
A=
0.
The
rest
of
the
binary
operators
are
relational.
<
The
first
expression
is less
than
the
second
expression.
>
The
first
expression
is
greater
than
the
second.
-
The
expressions
are
equal
to
each
other.
< =
The
first
expression
is less
than
or
equal
to
the
second.
> =
The
first
expression
is
greater
than
or
equal
to
the
second.
<
>The
two
expressions
are
not
equal
to
each
other.
These
operators
are
most
frequently
used
in
IF/THEN
statements
and
logical
arithmetic.
Operations
within
the
innermost
set
of
parentheses
are
performed
first
and
pro-
ceed
out
to
the
next
level.
When
sets
of
parentheses
are
enclosed
in
another
set,
they
are
said
to
be
"nested".
Operations
on
the
same
nesting
level
are
performed
in
the
following
order:
Highest
<,
>,=,<=,
>=,<->
precedence
* ' I
+,
-
Lowest
precedence
NOT
AND
OR
Relational
operators
used
in
string
expres-
sions.
Have
same
precedence
and
are
per-
formed
from
left
to
right.
Unary
minus
Exponentiation.
Multiplication
and
division
have
the
same
precedence
level
and
are
performed
from
left
to
right.
Addition
and
subtraction
have
the
same
precedence
level
and
are
performed
from
left
to
right.
Relational
operations
in
numeric
expressions
have
the
same
precedence
level
from
left
to
right.
Unary
operator
Logical
AND
Logical OR
General
Information
7

Table of Contents

Other manuals for Atari 800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari 800 and is the answer not in the manual?

Atari 800 Specifications

General IconGeneral
BrandAtari
Model800
CategoryDesktop
LanguageEnglish

Related product manuals