EasyManua.ls Logo

Atari XL

Atari XL
262 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...
Logical
Thinking
71
10
A = 5 (or
any
other
number)
the
program
will
print
O.
This
applies
to
all
the
other
comparisons
listed
in
Chapter
5
as
conditions
for
IJ.":
Equal
<
Less
than
>
Greater
than
<>
Not
equal
>=
Greater
than
or
equal
<=
Less
than
or
equal
Try
this:
10
A = 5
20
PRINT A
<=
7
If
you
tryout
the
other
tests,
you
will
find
they
all
behave
in
the
same
way.
LOGIC
If
two
tests
are
combined,
the
same
true
and
false
answers
are
still
obtained:
10
A = 5
20
PRINT (A< 7)
AND
(A> 3)
Now,
if
the
computer
evaluates
simple
relational
expressions
such
as
A<7,
A>3
as
1
or
0,
what
happens
when
two
are
combined,
and
what
does
the
AND
do?
There
are
three
BASIC
commands
which
can
be
used
with
relational
expressions:
AND,
OR
and

Related product manuals