Validation Formula

Hi All,Iam having three fileds ‘X’ ‘Y’ & ‘Z’. By default a value appears in ‘X’.Now if a value exists in ‘Y’ as well,then my ‘Z’ value should be mandatory.My ‘Z’ value is a Date Field which allows user to select the date from a a calendar.I tried writing the validation for the same in the below way.Correct me if iam wrong

@if(X!=“”;@Failure(“Please enter value of Z”);@success)

Not sure whats the problem.Not even any errror.Can anyone suggest what should be the procedure?

Subject: Validation Formula

Hi All,I have found solution.In my Formula

@if(Y!=“” & Z=“”;@Failure(“Please enter a value”);@success).This is working