Table of Contents

Advertisement

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.
BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 41

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp II and is the answer not in the manual?

Table of Contents