Operation Manual

Chapter 16: Programming 281
PRGM CTL (Control) Instructions
PRGM CTL Menu
To display the PRGM CTL (program control) menu, press from the program editor only.
Note: Press à (plus) to run the catalog help application and to use syntax help for programming.
These menu items direct the flow of an executing program. They make it easy to repeat or skip a group
of commands during program execution. When you select an item from the menu, the name is pasted
to the cursor location on a command line in the program.
To return to the program editor without selecting an item, press .
Controlling Program Flow
Program control instructions tell the TI-84 Plus C which command to execute next in a program. If,
While, and Repeat check a defined condition to determine which command to execute next.
Conditions frequently use relational or Boolean tests (Chapter 2), as in:
If A<7:A+1!A
or
If N=1 and M=1:Goto Z
If
Use If for testing and branching. If condition is false (zero), then the command immediately following If is
skipped. If condition is true (nonzero), then the next command is executed. If instructions can be nested.
CTL I/O EXEC
1: If
Creates a conditional test.
2: Then
Executes commands when If is true.
3: Else
Executes commands when If is false.
4: For(
Creates an incrementing loop.
5: While
Creates a conditional loop.
6: Repeat
Creates a conditional loop.
7: End
Signifies the end of a block.
8: Pause
Pauses program execution.
9: Lbl
Defines a label.
0: Goto
Goes to a label.
A: IS>(
Increments and skips if greater than.
B: DS<(
Decrements and skips if less than.
C: Menu(
Defines menu items and branches.
D: prgm
Executes a program as a subroutine.
E: Return
Returns from a subroutine.
F: Stop
Stops execution.
G: DelVar
Deletes a variable from within program.
H: GraphStyle(
Designates the graph style to be drawn.
I: GraphColor(
Designates the color of the graph to be drawn
J: OpenLib(
No longer used.
K: ExecLib(
No longer used.