EasyManua.ls Logo

IBM 5100 - Page 141

IBM 5100
228 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
Loading...
C"
Branching
and
Labels
Statements
in
a function definition are normally executed
in
the
order indicated
by
the
statement
numbers, and execution terminates
at
the
end
of
the
last state-
ment
in
the
sequence. This normal
order
can be modified by branching.
Branching
is
specified by a right arrow
(~)
followed by a label (name)
that
speci-
fies
the
statement
that
is
to
be branched
to.
For example,
the
expression
~START
means branch
to
a
statement
labeled START. When assigning a label
to
a
statement,
the
label must be followed by a colon (:) and
must
precede
the
statement.
The colon separates
the
labe' from
the
statement:
[2J
START:
N~-N+:L
[!:;]
"~STAI~T
In
the
previous example,
the
label
START
is
assigned
to
the
second
statement
in
the
function.
In
other
_words,
START
has 3 value
of
2; however, if
the
function
is
edited and
the
statement
is
no
longer
the
second
statement
in
the
function,
START
will automatically be given
the
value (or
,statement
number)
of
the
new
statement. (See
Function Editing later
in
this chapter.)
137

Table of Contents

Other manuals for IBM 5100

Related product manuals