122-32000 Parallax Inc, 122-32000 Datasheet - Page 222
122-32000
Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
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
- Current page: 222 of 438
- Download datasheet (5Mb)
This
In other words, it’s true if
a little difficult to read. To make it easier to read, parentheses can be used to group each sub-
condition, such as with the following.
Using IF with ELSE
The second most common form of the
condition is true or a different action if that condition is false. This is written as an
statement followed by its IfStatement(s) block, then an
block, as shown below:
Here, if
100, and I/O pin 1 is toggled. This
toggle on P0 or a toggle on P1; never both, and never neither.
Remember, the code that logically belongs to the IfStatement(s) or the ElseStatement(s) must
be indented from the
ELSE
column or the compiler will not know that the
For every
component in an
Using IF with ELSEIF
The third form of the
different action if that condition is false but another condition is true, etc. This is written as
an
followed by their respective ElseIfStatement(s) blocks. Here’s an example:
Page 222 · Propeller Manual v1.0
if X > 10 AND X < 100
if (X > 10) AND (X < 100)'If X greater than 10 and less than 100
if X > 100
else
if X > 100
elseif X == 90
IF
– Spin Language Reference
IF
must be lined up horizontally with the
!outa[0]
!outa[1]
!outa[0]
statement followed by its IfStatement(s) block, then one or more
statement would be true if, and only if,
X
is greater than 100, I/O pin 0 is toggled, otherwise,
IF
statement, there can be zero or one
IF
statement, appearing after any potential
IF
IF
or the
conditional command performs an action if a condition is true or a
X
is in the range 11 to 99. Sometimes statements like these can be
ELSE
'If X greater than 10 and less than 100
, respectively, by at least one space. Also note that the
IF
...
'If X is greater than 100
'Toggle P0
'Else, X <= 100
'Toggle P1
'If X is greater than 100
'Toggle P0
'Else If X = 90
ELSE
IF
IF
conditional command performs an action if a
ELSE
construct, as written, always performs either a
X
statement; they must both begin on the same
is greater than 10 and
goes with that
ELSE
ELSE
component.
ELSEIF
followed by its ElseStatement(s)
X
must be less than or equal to
IF
s.
.
ELSE
X
is also less than 100.
ELSEIF
must be the last
statements
IF
Related parts for 122-32000
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT SMART SENSORS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: