16-14 Programming
8316PROG.DOC TI-83 international English Bob Fedorisko Revised: 02/19/01 1:23 PM Printed: 02/19/01 1:39
PM Page 14 of 22
DS<(
(decrement and skip) subtracts 1 from
variable
. If the
answer is <
value
(which can be an expression), the next
command
is skipped; if the answer is
|
value
, the next
command
is executed.
variable
cannot be a system
variable.
:DS<(
variable
,
value
)
:
command
(if answer
‚
value
)
:
command
(if answer <
value
)
Program
Output
Note:
DS<(
is not a looping instruction.
Menu(
sets up branching within a program. If
Menu(
is
encountered during program execution, the menu screen is
displayed with the specified menu items, the pause
indicator is on, and execution pauses until you select a
menu item.
The menu
title
is enclosed in quotation marks (
"
). Up to
seven pairs of menu items follow. Each pair comprises a
text
item (also enclosed in quotation marks) to be
displayed as a menu selection, and a
label
item to which to
branch if you select the corresponding menu selection.
Menu("
title
","
text1
",
label1
,"
text2
",
label2
,
. . .
)
Program
Output
The program above pauses until you select
1
or
2
. If you
select
2
, for example, the menu disappears and the
program continues execution at
Lbl B
.
DS<(
Menu(