beautypg.com

Branch commands, Example, Branch commands -17 – HP 39g Graphing Calculator User Manual

Page 225

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

UNCHECK

View numbers

The views are numbered as follows:

0

HOME

11

List Catalog

1

Plot

12

Matrix Catalog

2

Symbolic

13

Notepad Catalog

3

Numeric

14

Programs Catalog

4

Plot-Setup

15

Plot-Detail

5

Symbolic-Setup

16

Plot-Table

6

Numeric-Setup

17

Overlay Plot

7

Views

18

Auto scale

8

Note

19

Decimal

9

Sketch view

20

Integer

10

Aplet Catalog

21

Trig

Unchecks (unselects) the corresponding function in the
current aplet. For example, Uncheck 3 would uncheck F3 if
the current aplet is Function.

UNCHECK n

Branch commands

IF...THEN...END

Branch commands let a program make a decision based on the

result of one or more tests. Unlike the other programming
commands, the branch commands work in logical groups.

Therefore, the commands are described together rather than

each independently.

Executes a sequence of commands in the true-clause only if

the test-clause evaluates to true. Its syntax is:

IF test-clause

THEN true-clause END

Example

l^A :
IF A==l

THEN MSGBOX A ” EQUALS 1" :

END

Programming

15-17