Versions Compared

Key

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

This method indicates whether or not a record was found by a prior call to file.getRecord()file.positionTo()file.positionAfter(), or file.delete(searchArgument)

Return Value

A Boolean value indicating whether/not a record was found.

Examples

Code Block
languagejavascript
titleConditional logic using record found state
pjs.defineFile("myfile", { read: true, keyed: true });
myfile.getRecord(100);
if (myfile.found())
  doSomething();

RPG Equivalent

%FOUND()