![HP 39g+ Скачать руководство пользователя страница 228](http://html.mh-extra.com/html/hp/39g/39g_user-manual_156533228.webp)
16-18
Programming
IF... THEN... ELSE...
END
Executes the
true-clause
sequence of commands if the
test-
clause
is true, or the
false-clause
sequence of commands
if the
test-clause
is false.
IF
test-clause
THEN
true-clause
ELSE
false-clause
END
Example
1
X
A
:
IF A==1
THEN MSGBOX "A EQUALS 1"
:
ELSE MSGBOX "A IS NOT EQUAL TO 1"
:
END
CASE...END
Executes a series of test-clause commands that execute
the appropriate
true-clause
sequence of commands. Its
syntax is:
CASE
IF
test-clause
1
THEN
true-clause
1
END
IF
test-clause
2
THEN
true-clause
2
END
.
.
.
IF
test-clause
n
THEN
true-clause
n
END
END
When CASE is executed,
test-clause
1
is evaluated. If the
test is true,
true-clause
1
is executed, and execution skips
to END. If
test-clause
1
if false, execution proceeds to
test-
clause
2
. Execution with the CASE structure continues until
a true-clause is executed (or until all the test-clauses
evaluate to false).
IFERR...
THEN...
END...
Many conditions are automatically recognized by the hp
39g+ as
error conditions
and are automatically treated
as errors in programs.
IFERR...THEN...END allows a program to intercept error
conditions that otherwise would cause the program to
abort. Its syntax is:
IFERR
trap-clause
THEN
error-clause
END
Содержание 39g+
Страница 1: ...hp 39g graphing calculator user s guide H Edition 2 Part Number F2224 90001 ...
Страница 62: ...2 22 Aplets and their views 5 Display the functions in numeric form ...
Страница 78: ......
Страница 83: ...Sequence aplet 6 3 Select Cobweb Display the table 6 Display the table of values for this example ...
Страница 84: ......
Страница 116: ......
Страница 178: ......