EasyManua.ls Logo

Laser 128 - Functional Operators; String Operations

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
The
equal
sign
"="
is
also
used
to
assign a
value
to a
variable
(see
LET
state
ment
in
Chapter
3
of
this
manual.)
If
a
rithmetic
al,
relational,
and
logical
opera
tor
s
are
combined
in
one
e
xpress
ion,
the
order
of
precedence
of
evaluation
is:
arithmetic,
then
relation
al,
then
logical.
1.6.4
FUNCTIONAL
OPERATORS
BASIC
has
a
number
of
built-in
or
"intrin
sic"
functions
which
may
be
used
in
either
direct
or
indirect
mode.
These
are
described
in
Chapter
4.
Exa
mple
s
are
T AN(A),
which
calculates
the
tan
ge
nt
of
an
angle
A,
and
LEFT$(X
$,
3),
which
return
s
the
three
leftmo
st
characters
of
a
string
X$.
You
can
define
your
own
fun
ct
ions u
sing
the
DEF
FN
command
. (see
DEF
FN
command
in
Chapter
3)
1.7
STRING
OPERATIONS
Two
s
trings
can
be
comp
a
red
us
ing
the
rela
tion
al
operators
.
They
work
by
comparing
the
numeric
ASCII
values
of
each
co
rr
espo
nding
character
of
eac
h s
trin
g.
The
conditions
for
equality
or
inequality
dep
e
nd
on
whether
the
ASCII
codes
a
re
higher
or
lower.
II-9

Table of Contents