Clientside GlideRecord - next()

Moves to the next record in the GlideRecord.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean False if there are no more records in the query set.
var rec = new GlideRecord('incident');
rec.query(recResponse);
 
function recResponse(rec) {
  while (rec.next()) { 
    alert(rec.number + ' exists');
  }
}