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

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
Boolean Is Equal ‘
The Boolean operator Is Equal compares two operands and returns
are the same, or returns
constant expressions. Example:
X := Y == Z
The above example compares the value of
if
This operator is often used in conditional expressions, such as in the following example.
IF (Y == 1)
Here, the Is Equal operator returns
Is Equal has an assignment form,
and the result destination. For example,
X === Y
Here,
FALSE
intermediate results; see Intermediate Assignments, page 253.
Boolean Is Not Equal ‘
The Boolean operator Is Not Equal compares two operands and returns True (-1) if the values
are not the same, or returns
and constant expressions. Example:
X := Y <> Z
The above example compares the value of
if
This operator is often used in conditional expressions, such as in the following example.
IF (Y <> 25)
Here, the Is Not Equal operator returns
Is Not Equal has an assignment form,
operand and the result destination. For example,
Y
Y
is the same value as
is not the same value as
X
(0). The assignment form of Is Equal may also be used within expressions for
is compared with
'Short form of X := X == Y
==
’, ‘
Z
, or
FALSE
<>
Y
===
, and if they are equal,
Z
FALSE
’, ‘
, or
FALSE
<>=
(0), otherwise. Is Equal can be used in both variable and
FALSE
===
TRUE
(0), otherwise. Is Not Equal can be used in both variable
(0) if
, that uses the variable to its left as both the first operand
TRUE
(0) if
<>=
if
Y
Y
Y
is not the same value as
Y
, that uses the variable to its left as both the first
equals 1.
if
with the value of
with the value of
Y
Y
is the same value as
is not 25.
X
is set to
TRUE
Z
Z
Propeller Manual v1.0 · Page 275
and sets
and sets
Z
Z
(-1), otherwise
.
.
TRUE
X
X
(-1) if both values
to either:
to either:
X
TRUE
TRUE
is set to
(-1)
(-1)

Related parts for 122-32000