EasyManua.ls Logo

Sharp EL-9650 - Page 256

Sharp EL-9650
373 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...
246
CHAPTER 12
[2 Goto]
To shift program execution to a label (character string).
Entry: Goto character string
<Example>
Goto LOOP
[3 If]
Specifies conditional branches.
Conditional branches start with the If command and are followed by the condition
statement and the branch destination when the condition is satisfied.
Only the Goto command can be used following an “If” command.
A space can be entered before the Goto command to make the program easier to
read.
Entry: If condition statement Goto character string
<Example>
If A = 1 Goto LOOP (If A = 1, then execution shifts to the Label LOOP. If A is not
equal to 1, the next program line is executed.)
[4 Gosub]
Shifts program execution to the sub routine starting with Label <character string>.
The Gosub character string must be the same as the character string of the Label
indicating the start of the sub routine.
Return is necessary at the end of the sub routine. When the Return statement is
executed, program execution shifts to the next command after the Gosub
statement.
Up to 10 sub routines can be nested, i.e. 10 Gosub commands may be entered
before a Return command is required.
Entry: Gosub character string
<Example>
Gosub PART 1
[5 Return]
Ends the sub routine and shifts the program execution to the next line after the
Gosub statement that specified the jump to the sub routine.
Entry: Return
EL-9650-(12)En (239-258) 8/1/00, 9:31 AM246

Table of Contents

Other manuals for Sharp EL-9650

Related product manuals