Versions Compared

Key

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

...

Code Block
languagejavascript
  pjs.define("NumIndex", { type: 'unsigned integer', length: 3, decimals: 0 });
  pjs.define("arr", { type: 'char', length: 1, dim: 10, orderby: 'ASCEND' });

  arr[1] = 'A';
  arr[2] = 'C';
  arr[3] = 'C';
  arr[4] = 'C';
  arr[5] = 'E';
  arr[6] = 'E';
  arr[7] = 'G';
  arr[8] = 'L';
  arr[9] = 'J';
  arr[10] = 'V';

  NumIndex = arr.lookupLE('D', 1, 10);

RPG Equivalent

%LOOKUPLE()