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 #64 background imageLoading...
Page #64 background image
Note:
1.
If
you
want
to
execute
a
LET
statement
directly
after
executing
an IF
statement,
be
sure
to
add
a LET,
'
djj^
Example:
IF
B>C
LET
B-B+1
2.
When
a GOTO
statement
follows
an
IF
statement,
the
former
can
be
defined
with
THEN
statement
(in
this
case the
THEN
statement
has
the
same
function
as the
GOTO
statement).
Example:
IF
B>=C
THEN
50
<-
IF
B>
=
C
GOTO
50
General
form
(2)
IF
(Expression)
Execution
statement
If
its
value
is
larger
than
0,
the
<
expression
>
is
judged
to be
true,
and
the
next
statement
will
be
executed.
If
its
value
is
or
smaller
than
0,
the
< expression
>
is
judged
to
be
false,
and
the
program
execu-
tion
goes
to
the
next
line.
Example:
30
:
I
F AGOTO
80
40
:
A=B*C
If
A>0,
"GOTO
80"
is
executed.
If
A
^
0,
"A
=
B
*
C"
on
line
40 is
executed.
General
form
(3)
IF
"Character"
[Character
variable]
H
"Character"
[Character
variable]
|
Execution
statement
fy
Example:
IF
AS
=
"ABC"
IF
A$=B$
The
Computer
compares
the
contents
of
"character"
or
[character
variable]
on
both
sides
of
=;
if
they
are
equal,
it
executes
the
next
statement;
if they
are
not
equal, it
moves
directly
to
the
next
line.
Example:
30: I
F
A$=
*GUARD*
GOTO
1
00
40
:
I
NPUT
A$
If
the
contents
of
A$ are
"GUARD,"
"GOTO
100"
is
executed.
If
not,
"INPUT
A$"
in
line 40
is
executed.
When
the
length
of
"character"
is
more
than
7,
only the
first
7 characters
are
used for
com-
parison,
and
the
excess
is
ignored.
General
form
(4)
IF
[Character
variable]
Execution
statement
If
any
character
is
stored
in the
[character
variable]
, the
next statement
is
executed.
If
nothing
is there,
the
program
moves to
the
next line.
61

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