Flow Control Tools - Sharp EL-9900 Operation Manual

Graphing calculator
Hide thumbs Also See for EL-9900:
Table of Contents

Advertisement

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
02 Goto
03 If
04 Then
05 Else
06 EndIf
214
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.
Goto label name
To shift the program execution to a label.
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.
* 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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents