122-32000 Parallax Inc, 122-32000 Datasheet - Page 274

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
X OR= Y
Here, the value of
promoted to
The assignment form of Boolean OR may also be used within expressions for intermediate
results; see Intermediate Assignments, page 253.
Be careful not to get Boolean OR ‘
comparison purposes while Bitwise OR is for bit manipulation (see page 270).
Boolean NOT ‘
The Boolean NOT ‘
FALSE
constant expressions. Example:
X := NOT Y
The above example returns the Boolean opposite of
is non-zero. During the comparison, it promotes the value of
any value, other than 0, a -1, so that the comparison becomes: “If NOT true” or “If NOT
false”
Quite often this operator is used in combination with other comparison operators, such as in
the following example.
IF NOT ( (Y > 9) AND (Y < 21) )
This example evaluates the result of
the result;
Boolean NOT becomes an assignment operator when it is the sole operator to the left of a
variable on a line by itself. For example:
NOT Flag
This would store the Boolean opposite of
Be careful not to get Boolean NOT ‘
for comparison purposes while Bitwise NOT is for bit manipulation (see page 272).
Page 274 · Propeller Manual v1.0
(0) if the operand is
TRUE
TRUE
(-1) if
'Short form of X := X OR Y
NOT
if non-zero) and the Boolean result (
X
NOT
Y
is promoted to
is in the range 10 to 20, in this case.
’ operator returns
TRUE
(non-zero). Boolean NOT can be used in both variable and
(Y > 9 AND Y < 21)
OR
NOT
TRUE
’ confused with Bitwise OR‘
’ confused with Bitwise NOT‘
Flag
TRUE
if it is non-zero, then is compared with
back into
(-1) if the operand is
Y
;
TRUE
TRUE
Flag
, and returns the Boolean opposite of
/
FALSE
(-1) if
.
Y
to -1 if it is non-zero, making
, -1 / 0) is stored back in X.
Y
is zero, or
|
’. Boolean OR is for
FALSE
!
’. Boolean NOT is
(0), or returns
FALSE
Y
(0) if
(also
Y

Related parts for 122-32000