...
Code Block | ||
---|---|---|
| ||
pjs.define("i", { type: 'integer', length: 3, decimals: 0, initValue: 1 }); pjs.define("SRCHWD", { type: 'char', length: 1 }); pjs.define("arr", { type: 'char', length: 1, dim: 10, orderby: 'ASCEND' }); arr[1] = 'A'; arr[2] = 'B'; arr[3] = 'C'; arr[4] = 'C'; arr[5] = 'C'; arr[6] = 'D'; arr[7] = 'E'; arr[8] = 'E'; arr[9] = 'F'; arr[10] = 'G'; SRCHWD = 'D'; pjs.lookupLT(SRCHWD, arr, i, { low: 55 }); |
RPG Equivalent: %LOOKUPLT
%LOOKUPLT()