Lookup
https://github.com/theonetruenerd/VenusPackages/blob/main/Lookup.pkg
The lookup library provides one function which allows you to locate items in an array and get their index.
- Lookup(array array, variable item)
Input an array and a value to look up. If the value occurs in the array, it will return the 1-based index. If it doesn’t occur in the array, it will return a 0.
- Params array:
The array to search
- Params item:
The variable to search for
- Returns:
1-based index if found, 0 if not found
- Return type:
Variable