214
Chapter 11: Programming Features
6. Flow control tools
ThecalculatorhasthecommonowcontroltoolssuchasGoto-Labelloopstructures,
andIf-,For-andWhile-statementclausesforenhancingaprogram’sefciency.Italso
has the capability for subroutines.
ItisrecommendedtouseIf,FororWhilestatementsratherthanGoto-Labelloop
structures.
To access the flow control tools, use the
P
B BRNCH menu.
01 Label Label label name
SpeciesabranchdestinationforGotoorGosub.
ThesameLabelnamecannotbeusedintwoplaceswithinthe
same program.
Upto10characterscanbeusedforaLabelname.
Upto50Labelscanbeusedinasingleprogram.
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
• Multiplestatementsmeanagroupofstatementlinesseparated
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
• Useacomparisonoperandinaconditionstatement.
• Upto115Ifclausescanbenested,thoughifcombinedwith
other types of loops, the maximum nested loop number may vary
due to the memory capacity.