How to check whether there is a new record

How to check whether there is a new record

Hi,

I have been tried the following code to let me know there are new record:
  1. x = test [Added_Time.toDate() == zoho.currentdate  ];
  2. if (x.count()>0)
  3. {
  4.       return true;
  5. }
  6. else
  7. {
  8.       return false;
  9. }
but i got error message "Error at null"

How the script is supposed to be?

Thanks,
Regards