Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Find element in a table array that is closest but less than or equal to the argument.

This API allows you to find an element which is less than or equal to the argument you pass to the function.it, and positions the table to that element.

An optional resulting indicators object can specify if any elements in the flags array should be set. The resulting indicators object can have these properties:

  • equal (Number) - identifies the flag number to set if an exact match is found
  • low (Number) - identifies the flag number to set if the nearest lower entry is found
Parameters
  1. Search argument
  2. Table array
  3. Alternate table array OR resulting indicators object (optional)
  4. resulting indicators (if alternate table array has been passed in) OR nullobject (optional)

RPG Equivalent

%TLOOKUPLE()