To see the whole discussion see: http://help.zoho.com/portal/en/community/topic/2nd-condition-being-ignored-in-validation-script
I have a form with 2 fields "Region" and "New Region"
Region is a look-up field from another form and New Region is a Single entry text field. When I use the following script to validate that there are entries in both, the first condition is evaluated and submit is canceled. However the second condition is not and the form will process even when the second field is null or empty.
if ((input.Region == null) && (input.New_Region == null))
{
alert "enter a region";
cancel submit;
}