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

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
CASE
Compare expression against matching expression(s) and execute code block if match found.
((PUB ┆ PRI))
Explanation
CASE
executes a block of code.
IF..ELSEIF..ELSE
different values.
CASE
match is found, executes the associated Statement(s). If no previous matches were found, the
Statement(s) associated with the optional
Indention is Critical
IMPORTANT: Indention is critical. The Spin language relies on indention (of one space or
more) on lines following conditional commands to determine if they belong to that command
or not. To have the Propeller Tool indicate these logically grouped blocks of code on-screen,
CASE
〈 OTHER
compares CaseExpression against the values of each MatchExpression, in order, and if a
is one of the three conditional commands (
MatchExpression :
MatchExpression :
Statement(s)
Statement(s)
Statement(s)
CaseExpression
MatchExpression
expressions, to compare CaseExpression against. Each MatchExpression must be
followed by a colon (:).
Statement(s)
CaseExpression matches the associated MatchExpression.
statement in Statement(s) may appear to the right of the colon on the
MatchExpression line, or below it and slightly indented from the MatchExpression
itself.
CaseExpression
:
, when you need to compare the equality of CaseExpression to a number of
is a block of one or more lines of code to execute when the
is the expression to compare.
is a singular or comma-delimited set of value- and/or range-
CASE
is the preferred structure to use, as opposed to
OTHER
4: Spin Language Reference –
command are executed.
IF
,
IFNOT
, and
Propeller Manual v1.0 · Page 171
CASE
The first, or only,
) that conditionally

Related parts for 122-32000