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 #63 background imageLoading...
Page #63 background image
General
form
(2)
GOTO
Example:
GOTO
"AB"
GOTO A$
"Character"
[Character variable]
This
form
causes
a
jump to
a
label whose
contents are the same
as those
of
"character"
or
[character
variable]
.
The
length
of
"character"
and
label
is
limited
to seven
characters.
Thus,
if
you
use a label of more than
7
characters, the Computer
ignores
all after
the first
7.
Example
30
90
120
240
300
*A-1": I
NPUT A$
I
F
POQGOTO A$
GOTO
*A-1'
A$=ME
*ME":
PR I NT C
A$=YOU
*YOU*:
PR I
NT
C
In
the
execution of "GOTO A$"
in line
90,
when
the contents of
A$ are
"ME",
a
jump to label
"ME"
occurs,
and if
"YOU",
a
jump
to label
"YOU" occurs.
Note:
No
statement
can
follow
a
GOTO statement;
a
line with
a
GOTO
statement
must have
the
GOTO statement
at
the end of the
line.
IF
statement
IF
is
a
statement
which
uses conditions
to
determine
action (condition
can be
"larger/smaller"
decision,
"equal" decision, "not-equal" decision,
etc.).
General form
(1)
IF
(
Expression
)
Logic
operation <
Expression
) Execution
statement
Logic operator:
<,
<=, =,
>,
>=,
<>
If
the relational expression
that
follows IF
is
affected [if the
logical
operation
results
in
1 (true)]
the
next
statement (instruction)
is
executed, and if
not [if the
logical
operation
results in
(false)]
the program skips the next
execution
statement, going
to
the
following line.
Example:
40:
IF
A*B>
=
C
PAUSE A*B:GOTO
90
50
: A=A+1
90
: A=A+B
If
A*
B >
=
C, the program begins by executing the next statement "PAUSE A
*
8".
If
A*B<C, the program
begins
by
executing line
50,
"A=A+1",
skipping
"PAUSE A
*B :
GOTO
90".
60

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