ptr ! = null
signifies there is a current record to be processed
if(ptr ! = null)