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

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
Quite often this operator is used in combination with other comparison operators, such as in
the following example.
IF (Y == 20) AND (Z == 100)
This example evaluates the result of
Boolean AND operator returns
Boolean AND has an assignment form,
operand and the result destination. For example,
X AND= True
Here, the value of
Boolean result (
AND may also be used within expressions for intermediate results; see Intermediate
Assignments, page 253.
Be careful not to get Boolean AND ‘
for comparison purposes while Bitwise AND is for bit manipulation (see page 269).
Boolean OR ‘
The Boolean OR ‘
TRUE
in both variable and constant expressions. Example:
X := Y OR Z
The above example compares the value of
if either
promotes each of the two values to -1 if they are non-zero, making any value, other than 0, a -
1, so that the comparison becomes: “If
Quite often this operator is used in combination with other comparison operators, such as in
the following example.
IF (Y == 1) OR (Z > 50)
This example evaluates the result of
Boolean
Boolean OR has an assignment form,
operand and the result destination. For example,
(non-zero), or returns
Y
OR
or
operator returns
Z
are non-zero, or
OR
TRUE
’, ‘
OR
X
'Short form of X := X AND True
is promoted to
’ operator compares two operands and returns
OR=
/
FALSE
FALSE
TRUE
, -1 / 0) is stored back in
TRUE
FALSE
(-1).
(0) if both operands are
TRUE
Y == 20
(-1).
Y == 1
AND
(0) if both
Y
OR=
AND=
is true or
’ confused with Bitwise AND ‘
if it is non-zero, then is compared with
, that uses the variable to its left as both the first
Y
, that uses the variable to its left as both the first
with the value of
against that of
against that of
Y
Z
and
is true…”
Z
X
. The assignment form of Boolean
are zero. During the comparison, it
FALSE
Z == 100
Z > 50
Z
Propeller Manual v1.0 · Page 273
(0). Boolean OR can be used
and sets
, and if either are true, the
TRUE
, and if both are true, the
&
(-1) if either value is
X
’. Boolean AND is
to either:
TRUE
TRUE
and the
(-1)

Related parts for 122-32000