Flow control tools – Sharp EL-9900 User Manual
Page 224
214
Chapter 13: Programming Features
6. Flow control tools
The calculator has the common flow control tools such as Goto - Label loop struc-
tures, and If-, For- and While-statement clauses for enhancing a program’s efficiency.
It also has the capability for subroutines.
It is recommended to use If, For or While statements rather than Goto-Label loop
structures.
To access the flow control tools, use the
P B BRNCH menu.
01 Label
Label
label name
Specifies a branch destination for Goto or Gosub.
The same Label name cannot be used in two places within the
same program.
Up to 10 characters can be used for a Label name.
Up to 50 Labels can be used in a single program.
02 Goto
Goto
label name
To shift the program execution to a label.
03 If
If
conditional statements Goto label name
or
If
conditional statements
Then
commands or multiple statements *
[Else
commands or multiple statements]
EndIf
* Multiple statements mean a group of statement lines separated
by colons(:) that are evaluated as a single line.
Within a second structure it is possible to use the following menu
items.
04 Then
05 Else
06 EndIf
* Use a comparison operand in a condition statement.
* Up to 115 If clauses can be nested, though if combined with
other types of loops, the maximum nested loop number may
vary due to the memory capacity.