EasyManua.ls Logo

Laser 128 - Operators; Logical Operators

Laser 128
255 pages
Print Icon
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...
INTRODUCTION
This
order
of
operations
can
be
changed
by
using
parentheses,
as
the
expressions
within
parentheses
are
evaluated
fir
st.
Within
parentheses,
the
above
order
is
kept.
Following
are
some
examples
of
how
this
is
done:
Algebraic
expression
BASIC
expression
Result
2+10
-:-2
2+10/2
7
(2 +
IO)-:-
2 (2 +
10)/2
6
Operators
of
the
same
preference
are
executed
form
left
to
right.
1.6.2
LOGICAL
OPERATORS
These
operators
work
on
values
according
to
their
logical
states
to
produce
a
result
which
is
either
one
11
l
11
or
zero
"O"
-
"true"
or
"false".
A
non-zero
value
corresponds
to
a
"true"
sta
te,
while
a
zero
value
corresponds
to
a
"fal
se"
state.
The
outcome
of
a
logical
operation
is as
shown
in
the
t
ab
le
following.
The
operators
are
li
sted
in
order
of
precedence.
11-7

Table of Contents