FANDOM


Syntax


Value$ = LOOKUP$ ( Lookup id, Key$ )
Value$ = LOOKUP$ ( Lookup id, Key$, Default value$ )


Description


This command is used to retrieve the string value assigned to the key within the specified lookup table. Key lookup is case-sensitive.

For the first form of this command, if the key does not exist within the table, then the following apply:
- If the GET MODE for the lookup table is set to 0, an empty string will be returned.
- If the GET MODE for the lookup table is set to 1, an error will be triggered.

For the second form of this function, if the key does not exist within the table, the value specified as the default value will be returned.

Community content is available under CC-BY-SA unless otherwise noted.