Propeller Manual

Table Of Contents
2: Spin Language Reference – LOOKUP, LOOKUPZ
Propeller Manual v1.1 · Page 139
If LOOKUPZ is used, the list is zero-based (0..N-1) instead of one-based; an Index of 0 returns
25,
Index of 1 returns 300, etc.
If Index is out of range 0 is returned. So, for
LOOKUP, if the REPEAT statement went from 0 to
8, instead of 1 to 7, this example would print 0, 25, 300, 2510, 163, 17, 8000, 3 and 0 on a
display.