BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 41
BASIC Stamp II
LOOKDOWN
Lookdown a value and return an index.
usage:
LOOKDOWN value,??[value0,value1,value2,...valueN],variable
?? is a comparison operator: =,<>,>,<,<=,=> (= is the default).
A comparison is made between
value
and
value0
; if the result is true, 0 is
written into
variable.
If that comparison was false, another comparison
is made between
value
and
value1
; if the result is true, 1 is written into
variable. This process continues until a true is yielded, at which time
the index is written into
variable
, or until all entries are exhausted, in
which case
variable
is unaffected.
Summary of Contents for BASIC Stamp II
Page 2: ...BLANK PAGE...