Change of automatic given date

Change of automatic given date

Hi

I have a script saying;

if (input.Status == "Closed")
{
input.Closed_date = (zoho.currenttime + '0W:0D:0H:0M:0S');
}


If I want the closed_date field to be empty if Status i equal to "assigned"

What do I have to write?

BR Skouboe