LTS function
Syntax
LTS (array1, array2)
CALL -LTS (return.array, array1, array2)
CALL !LTS (return.array, array1, array2)
Description
Use the LTS function to test if elements of one dynamic array are less than elements of another dynamic array.
Each element of array1 is compared with the corresponding element of array2. If the element from array1 is less than the element from array2, a 1 is returned in the corresponding element of a new dynamic array. If the element from array1 is greater than or equal to the element from array2, a 0 is returned. If an element of one dynamic array has no corresponding element in the other dynamic array, the undefined element is evaluated as an empty string, and the comparison continues.
If either of a corresponding pair of elements is the null value, null is returned for that element.
If you use the subroutine syntax, the resulting dynamic array is returned as return.array.