Goeiemiddag,

In mijn proton programma werd mij afgeraden van te veel if...then te gebruiken. Er werd mij Lookdown aangeraden.
Maar wat doet dit commando eigenlijk?

Groetjes
Mike G

Syntax

Variable = LOOKDOWN Index , [ Constant { , Constant…etc } ]

Overview

Search constants(s) for index value. If index matches one of the constants, then store the matching constant's position (0-N) in variable. If no match is found, then the variable is unaffected.

Operators
Variable - a user define variable that holds the result of the search.
Index - is the variable/constant being sought.
Constant(s)... - a list of values. The target value is compared to these values. A maximum of 255 values may be placed between the square brackets, 256 if using a 16-bit core device.