Programming 277
XOR Exclusive Or.
Syntax: expr1 XOR expr2
Example: 3+1==2 OR 8 < 5 returns 0.
NOT (or !) Logical Negation.
Syntax: NOT(expr1)
Example: NOT(3+1==4) returns 0.
Variable
commands
These commands allow you to control the visibility of a
user-defined variable or function.
Export Export.
Syntax: EXPORT(FunctionName)
Exports the function FunctionName so that it is globally
available and appears in the Program Commands menu
(
S CMDS) when is pressed.
Local Local.
Syntax: LOCALvar1,var2,…varn;
Makes the variables var1, var2, etc. local to the program
in which they are found.
Variables and Programs
The HP 39gII has three types of variables: Home
variables, App variables, and User variables. You use the
Variable menu (
a) to retrieve Home, app, or User
variables.
Home variables are used for real numbers, complex
numbers, graphics, lists, and matrices among other
things. Home variables keep the same value in Home and
in apps.
App variables are those whose values depend on the
current app. The app variables are used in programming
to represent the definitions and settings you make when
working with apps interactively.