EasyManuals Logo

Sharp MZ-800 User Manual

Sharp MZ-800
221 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 #77 background imageLoading...
Page #77 background image
IF
~
THEN
~
:ELSE
Format
IF
{
<relational
expression>
|
THEN
{
<statement>
\
<logical
expression
>
}
<line
number
>
<label>
(:ELSE
{<statement>
)]
<line
number
>
<label>
Abbreviated
Format
IF
~TH.~:EL.
IF
~
THEN
~:ELSE
statements
are
used
to
control
branching
of
program
execu-
tion
according
to
the
result
of
a
logical
or
relational
expression.
When
the
result
of
such
an
expression
is
true,
statements
following
THEN
are
executed.
If
a
line
number
is
specified
following
THEN,
program
execution
jumps
to
that
line
of
the
program.
If
the
result
of
the
logical
or
relational
expression
is
false,
statements
following
ELSE
are
executed.
If
a
line
number
is
specified
following
ELSE,
program
execution
jumps
to
that
line.
If
:ELSE
is
omitted
and
the
result
of
expression
is
false,
execution continues
with
the
next
program
line
after
the
IF~
THEN
statement.
Explanation
(When
ELSE
is
not
used)
(When
ELSE
is
used)
‘onditional
expression
atistiod?
NO
‘onditional
‘expression
satisfied?
YES
YES
[
THEN THEN
Wa
line
number
[if
a
statement
||
|if'aline
number
[I
a
statement
of
label
is
is
specified,
it
is||
|
or
labet
is
ified,
it
is
specified
executed
specified.
executed.
J
Execution
jumps
to
the
specified
line
oF
label.
Execution
jumps
Afterwards,
pro-
to
the
specified
gram
execution
line
or
label.
advances
to
the
next
line.
Afterwards,
pro-
|
gram
execution
advances
to
the
ext
line
ELSE
If
a
line
number
|If
#
statement
is
specified,
it
is
executed.
To
next
line
6-20
Execution
jumps
to
the
specified
line
oF
label.
Afterwards,
pro-
gram
execution
advances
to
the
next
line.

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals