HP 40G manual Branch commands, Uncheck, If...Then...End, If test-clause, Then true-clause END

Models: 40G

1 288
Download 288 pages 40.09 Kb
Page 223
Image 223

 

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

UNCHECK

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

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.

IF...THEN...END

Executes a sequence of commands in the true–clauseonly if

 

the test–clauseevaluates to true. Its syntax is:

 

IF test–clause

 

THEN true–clause END

 

Example

 

1&A :

 

IF A==1

 

THEN MSGBOX A " EQUALS 1" :

 

END

Programming

15-17

Page 223
Image 223
HP 40G manual Branch commands, Uncheck, If...Then...End, If test-clause, Then true-clause END