Similar script produces error

Similar script produces error

The application in question sends an email "on success" to the end user.  Subsequent follow up emails are sent over the next few weeks using an "on load" script.

I have been trying to add a script which continues to produce an "on load" error.

This is the script just before the new lines I am attempting to add.  It works fine, as do the scripts above it. (NOTE: I have removed the email content so that this post doesn't exceed character limit).

  1. else if ((lead.Added_Time.addDay(30)  <  zoho.currentdate)  &&  (lead.day30  ==  "No"))
        {
            sendmail
            (
                To       :  lead.Email
                From     :  zoho.adminuserid
                Subject  :  lead.Name + ", a lesson in personal training for you..."
                Message  :  message content here
            )
            lead.day30 = "Yes";
        }












Script that produces error:
  1.  else if ((lead.Added_Time.addDay(31)  <  zoho.currentdate)  &&  (lead.NY2012  ==  "no"))
        {
            sendmail
            (
                To       :  lead.Email
                From     :  zoho.adminuserid
                Subject  :  lead.Name + ", a New Years Special Offer for you...ends soon."
                Message  :  message content here
            )
            lead.NY2012 = "yes";
        }










Any ideas or suggestions?


Thanks
Aron