EasyManua.ls Logo

Casio FX-795P - GOTO Branch location; ON Numeric expression GOTO...

Casio FX-795P
133 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...
CHAPTER
7
|
Command
Reference
Branched
line
No.
®
GOTO
je
ponsm
so,
Number
0
to
9
Function:
Unconditionally
branches
to
a
specified
location.
Parameter:
Line
No.:
1
to
9999.
Program
area
No.:
Oto9.
Explanation:
1)
Branches
to
a
specified
location.
2)
When
a
branched
location
is
a
line
number,
branches
to
the
specified
line
in
the
current
program
area
and
executes
the
program.
When
the
branched
line
number
does
not
exist,
an
error
(Error
4)
occurs.
3)
When
the
branched
location
is
a
program
area
number,
branches
to’
the
specified
program
area
and
executes
the
program
from
the
beginning.
*A
numeric
expression
can
be
used
for
the
branched
line
number
and
the
pro-
gram
area
number.
Example:
1@
PRINT
“START”?
2@
GOTO
100
3@
PRINT
“LINE
30”
40
END
100
BEEP
@:BEEP
1
11@
PRINT
12@
PRINT“LINE
120”
130
GOTO
30
150
7-2
Program
Commands
Branch
condition
eam
location]
O
N
Numeric
expression
GOT
[
,
[Branched
location]
]*
Line
No.
*
Branched
location
{
#
program
area
No.
Function:
Branches
to
a
specified
location
according
to
the
branch
condition.
Parameter:
Branch
condition:
Numeric
expression.
Values
below
the
decimal
point
are
discarded.
Line
No.:
1
to
9999.
Program
area
No.:
0
to
9.
Explanation:
1)
Branches
according
to
the
integer
part
of
the
value
in
a
branch
condition
expression.
Branched
locations
are
allocated
sequentially
according
to
ON
A
GOTO
100,
200, 300,
+++:
Az1
Axe Aza
2)
When
the
value
of
the
expression
is
smaller
than
1,
or
when
an
appropriate
branched
location
does
not
exist,
the
next
statement
is
executed
without
branching.
3)
As
many
branched
locations
that
can
fit-on
one
line
can
be
written.
Example:
1@
INPUT
“A=’,
20
ON
A
GOTO
100,200,300
3@
PRINT
“OTHER”
48
GOTO
10
10@
PRINT
“LINE
100”:GOTO
10
20@
PRINT
“LINE
2@@”:GOTO
10
300
PRINT
“LINE.
30@”:GOTO.
10
*When
1
~
3
is
entered,
branchings
to
100
~
300
are
performed
respectively,
otherwise
“OTHER”
is
displayed.
15t

Related product manuals