Scoped GlideRecord - _next()

Moves to the next record in the GlideRecord. Provides the same functionality as next(), it is intended to be used in cases where the GlideRecord has a column named next.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
Boolean True if there are more records in the query set.
var rec = new GlideRecord('sys_template');
while (rec._next()) { 
  gs.print(rec.number + ' exists');