IF statement -- Date == NULL Error.,

IF statement -- Date == NULL Error.,

HI,

I am facing null error on the below 1st line (IF statement). All 4 fields are of type Date.


if((((input.From_date  ==  null)  ||  (input.To_Date  ==  null))  ||  (input.From_mon  ==  null))  ||  (input.Date_monto  ==  null))
{

Execute;
}
Else
{
Execute this;
}

Let me know the solution.,