Chapter 16: Programming
286
IS>(
IS>(
(increment and skip) adds 1 to
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.
:IS>(
variable
,
value
)
:
command
(if answer
value
)
:
command
(if answer >
value
)
Program
Output
Note:
IS>(
is not a looping instruction.
DS<(
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(
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