Reference Guide
Full Command and Function Reference 3-161
bit
1
bit
2
bit
1
OR bit
2
0 0 0
0 1 1
1 0 1
1 1 1
•
An argument that is a string is treated as a sequence of bits, using 8 bits per character (that is,
using the binary version of the character code). The two string arguments must be the same
length.
When the arguments are real numbers or symbolics, OR simply does a true/false test. The result
is 1 (true) if either or both arguments are nonzero; it is 0 (false) if both arguments are zero. This
test is usually done to compare two test results.
If either or both of the arguments are algebraic objects, then the result is an algebraic of the form
symb
1
OR symb
2
. Execute →NUM (or set flag –3 before executing OR) to produce a numeric
result from the algebraic result.
Access: …ãL
LOGIC OR
(ãis the right-shift of the 3key).
!°
TEST
L
OR
( °is the left-shift of the Nkey).
Flags: Numerical Results (–3), Binary Integer Wordsize (–5 through –10)
Input/Output:
Level 2/Argument 1 Level 1/Argument 2 Level 1/Item 1
#n
1
#n
2
→
#n
3
“string
1
”
“string
2
”
→
“string
3
”
T/F
1
T/F
2
→
0/1
T/F
'symb'
→
'T/F OR symb'
'symb'
T/F
→
'symb OR T/F'
'symb
1
'
'symb
2
'
→
'symb
1
OR symb
2
'
See also: AND, NOT, XOR
ORDER
Type: Command
Description: Order Variables Command: Reorders the variables in the current directory (shown in the VAR
menu) to the order specified.
The names that appear first in the list will be the first to appear in the VAR menu. Variables not
specified in the list are placed after the reordered variables.
If the list includes the name of a large subdirectory, there may be insufficient memory to execute
ORDER.
Access: !°
MEMORY DIRECTORY
L
ORDER
( °is the left-shift of the Nkey).
Input/Output:
Level 1/Argument 1 Level 1/Item 1
{ global
1
... global
n
}
→
See also: VARS
OVER
Type: RPL command
Description: Over Command: Returns a copy to stack level 1 of the object in level 2.