APPENDIX B
990
Operators in Type 4 Functions
B.2 Relational, Boolean, and Bitwise Operators
any
1
any
2
any
1
any
2
num
1
num
2
num
1
num
2
num
1
num
2
num
1
num
2
bool
1
|
int
1
bool
2
|
int
2
bool
1
|
int
1
bool
2
|
int
2
bool
1
|
int
1
bool
2
|
int
2
bool
1
|
int
1
int
1
shift
–
–
eq
bool
ne
bool
gt
bool
ge
bool
lt
bool
le
bool
and
bool
3
|
int
3
or
bool
3
|
int
3
xor
bool
3
|
int
3
not
bool
2
|
int
2
bitshift
int
2
true
true
false
false
Test equal
Test not equal
Test greater than
Test greater than or equal
Test less than
Test less than or equal
Perform logical | bitwise and
Perform logical | bitwise inclusive or
Perform logical | bitwise exclusive or
Perform logical | bitwise not
Perform bitwise shift of
int
1
(positive is left)
Return boolean value
true
Return boolean value
false
B.3 Conditional Operators
bool
{
expr
}
if
–
bool
{
expr
1
} {
expr
2
}
ifelse
–
Execute
expr
if
bool
is
true
Execute
expr
1
if
bool
is
true,
expr
2
if
false
B.4 Stack Operators
any
any
1
any
2
any
any
1
…
any
n
n
any
n
…
any
0
n
any
n
−
1
…
any
0
n j
pop
–
exch
any
2
any
1
dup
any any
copy
any
1
…
any
n
any
1
…
any
n
index
any
n
…
any
0
any
n
roll
any
(
j
−
1
) mod
n
…
any
0
any
n
−
1
Discard top element
Exchange top two elements
Duplicate top element
Duplicate top
n
elements
Duplicate arbitrary element
…
any
j
mod
n
Roll
n
elements up
j
times