PAGE('SYNC_READYTOPROCESS')

This command returns true, if there is downloaded data that is ready to be processed and false otherwise.

bool PAGE('SYNC_READYTOPROCESS');

example:
if PAGE('SYNC_READYTOPROCESS') THEN
  …
end;