Zoho Creator - Fire notification after approval if end date has passed

Zoho Creator - Fire notification after approval if end date has passed

Hi All,

I'm new to creator and could use a hand solving, what i suspect to be, a very simple issue. 

I have two fields: Start and End (date and time fields) 
On approval I need to fire a notification if the end date has passed

Attempted this:


And this (which errors at line 1) 

  1. if input.end =< zoho.currentdate;
  2. {
  3. sendmail
  4.  [
  5.  from: me@zoho.com
  6.  to: you@zoho.com
  7.  cc: <cc>
  8.  bcc: <bcc>
  9.  reply to: <reply_to_address>
  10.  subject: please fire
  11.  message: please fire 
  12.  content type: <content_type>
  13.  attachments: <attachment>
  14.  ]
  15.  }
  16.