A Bevy of BIFs: Look Up to %LookUp
February 4, 2009 Susan Gantner
The %LookUp built-in function is more than just a simple replacement for the LOOKUP operation code to allow use in /Free format logic. It offers the option of supercharging the performance of an array search operation. Let’s cover the basics first. %LOOKUP( searchfor : array {: startindex {: numelems}}) The first parameter is the argument you’re searching for, and the second parameter the name of the array where you’re looking; i.e., what would have been specified in Factor 1 and 2 of the LOOKUP op code, respectively. The optional third parameter is the starting index for the search, i.e., what |