If Statement in a Function

If Statement in a Function

Unsure if this is possible or just bad code.

void OffHold(int ID)
if (On_Hold_Date == "null");
{
    alert "Sorry, You can not take Off Hold that is not On Hold";
    cancel submit;
}
else
{
    rec  =  On_Hold_Test_App  [ID == input.ID];
    rec.Off_Hold_Date = zoho.currentdate;
    rec.Due_Date = zoho.currentdate.addBusinessday(2);
}

I'm receiving the following error message:
Error at line number : 2
Improper Statement
Error might be due to missing ';' at end of the line or incomplete expression

I'm just  trying  to build in some basic error handling.