I ntroduction to Atari
BASIC
51
More
than
one
array can be
defined
with
a single
DIM
statement. This
is
shown in the example
below:
100
DIM
Z(5,
2),
B(100), C(2,3)
A
DIM
statement must appear in a
program
before
the array
variable
it
is
dimensioning
appears. If
an
array variable
is
used in
a
program
before
it
is
dimensioned,
error
9
will
occur
.
Expressions and Operators
The
values
of
variables and constants are
combined
to
form
a
new
value
through
the
use
of
expressions. The
following
are
examples
of
expressions.
4+7
A$ +
B$
31\2
14 <
21
X
AND
Y
Atari BASIC includes several types
of
expressions
including
arithmetic, relational, and Boolean. In
our
previous examples,
the first
three
examples are
arithmetic
expressions,
while
the
fourth
and
fifth
are examples
of
relational and Boolean
expressions respectively.
Each
of
these types
of
expressions
will
be discussed in detail in the
following
sections.
The sign
or
phrase
describing
the
operation
to
be
undertaken
is
known
as
the
operator
. The operators in
our
previous example
were
as
follows:
+
+
1\
.::::
AND
The constants
or
variables
which
are affected by
the
operator
are
known
as
operands.