EasyManuals Logo

Radio Shack Telephone Interface II Manual

Radio Shack Telephone Interface II
126 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 #27 background imageLoading...
Page #27 background image
I
6. Logic
functions
)
I
These
functions
return
1
when
an
expression
composed
using
logic
operators
(-><>=<
=
and
<>
)
is
true,
and
when
false.
In
other
words,
xQyjo
is
a
logic
operator)
gives
us
either
a
1
or
a
depending
on the
relationship
of
x and
y.
'
x
Logic
operator
1
if
x=y.
if xl=y.
>•
<
=
1 if x>y
\f x<y
1
if
x<y
tf
x>y
1
if
x>y
if
jc
<y
1
if
x
<y
if
x>y
<>
1 if
x^y
if
x=y
Note:
<
>
has the
same
meaning
as
=£.
&
If
you
want
to
use
a
logical
expression
relating
to
contents
of
a
memory
(variable
name)
you
must
use
the
following
form:
<
expression
>
=
[memory/variable
name]
. If
you
use
[memory/
variable
name)
=
<
expression
)
the
Computer
will
treat
the
statement
as
a
normal
assignment
statement;
e.g.
A =
<
expression
>.
(Relational
equations
in IF
statements,
are
not
subject
to
this
exception;
i.e.
they
function
normally.)
Examples:
(5
+
8)>(3*4)
=
(24/5)<
=
(2.4*2)=
Operation
m3CS4CD
|
BITER
|
DD24
m
5
rn;iii^ir<ir^i
CD
2.4
[*D2m
[biter|
Display
(5
+
8)
>
_
(5
+
8)
>
(3*4)
_
(24/5)
<==_
(24/5)
<=
(2. 4*2)
1.
Note
Answer
Answer
Notes:
Logical
expressions
(AND)
and
(OR) can
be
executed
using
the
following
form
of
logical
computa-
tions.
(T)
Logical
OR
(logical
computation)
+
(logical
computation)
Example:
{A
<
0)
+
(A
>
8)
1
is
returned
if A
is
smaller
than
or
larger
than
8.
(B
> 0)
+
(C>
0)
1
is
returned
if
B
or C
is larger
than
and
2
is
returned
if
both B
and
C are
larger
than
0.
(2)
Logical
AND
(logical
computation)
*
(logical
computation)
Example:
(B
>
1) *
(B
<
6)
1
is
returned
if
B is
larger
than
1
and
smaller
than
6.
24

Other manuals for Radio Shack Telephone Interface II

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Radio Shack Telephone Interface II and is the answer not in the manual?

Radio Shack Telephone Interface II Specifications

General IconGeneral
BrandRadio Shack
ModelTelephone Interface II
CategoryDesktop
LanguageEnglish

Related product manuals