HP 38g Graphing Calculator User Manual
Page 164
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".
![background image](/manuals/632106/164/background.png)
CASE-END
Executes a series of test-ciause commands that execute the
appropriate
tm e -c la u s e
sequence of commands. Its syntax is;
CASE
IF
te s t-c la u s e ^
THEN
tr u e -c la u s e
^END
IF
te s t-c la u s e ^
THEN
tr u e -c la u s e ^
END
IF
te s t-c la u s e ^
THEN
tr u e -c la u s e ^
END
END
When CASE is executed,
te s U la u s e ^
is evaluated. If the test is true,
tm e -c la u s e ^
is executed, and execution skips to END. If
te s K la u s e ,
if false, execution proceeds to
te s t-c la u s e ^ .
Execution with the
CASE structure continues until a true-clause is executed (or until
all the test-clauses evaluate to false).
IFERR-
THEN...
EL5E...
Many conditions are automatically recognized by the HP 38G as
e r r o r c o n d itio n s
—and they’re automatically treated as errors in
programs.
IFERR...THEN...ELSE allows a program to intercept error
conditions that otherwise would cause the program to abort. Its
syntax is:
IFERR
tr a p -c la u s e
THEN
e r r o r -c la u s e
ELSE
n o r m a l-c la u s e
END
RUN
Runs the named program. If your program name contains
special characters, such as a space, and then you must enclose
the file name in double quotes (“ ")■
RUN
" p r o g r a m n a m e
"
or RUN
p r o g r a m n a m e
STOP
Stops the current program.
STOP
8-12 Programming