March 2017
Beginner
358 pages
9h 51m
English
hasNext() is a simple method that returns a boolean value, indicating whether or not there are more records returned from a GlideRecord query, which can be accessed using .next().
If, for example, your query returns three records, you might call .next() after the query to get the first record. At this point, hasNext() will return true. Calling next() again to get the second record will leave us with one left, so once again, hasNext() will return true. However, calling next() one more time will populate the third and final record into the GlideRecord object. There being no further additional records to grab, if we call hasNext() once more at this point, it will return false.
Read now
Unlock full access