Subject: @if must have odd number of arguments…
The problem is your second condition inside your second IF.
@If( Form=“SRDGen”;
@If( Working_Status_2="Pending - Sponsors/Doc Engineer Review" & DEApproval="";
"DocEngineer";
Working_Status_2="Pending - Sponsors/Doc Engineer Review" &
@If( NumofSS=@ToNumber("1") & SSApproval1="";
"Sponsors";
"Test1"
);
Working_Status_2="S/W Productionization Review" |
Working_Status_2="Productionized Open - S/W Productionization Review" &
SoftSenApproval="";
"Software";
"Test2"
);
@False
)
I assume you don’t mean to have the and (&) there but instead meant:
@If( Form=“SRDGen”;
@If( Working_Status_2="Pending - Sponsors/Doc Engineer Review" & DEApproval="";
"DocEngineer";
Working_Status_2="Pending - Sponsors/Doc Engineer Review";
@If( NumofSS=@ToNumber("1") & SSApproval1="";
"Sponsors";
"Test1"
);
Working_Status_2="S/W Productionization Review" |
Working_Status_2="Productionized Open - S/W Productionization Review" &
SoftSenApproval="";
"Software";
"Test2"
);
@False
)
If you’re looking at this via the web, this should help make it readible:
@If( Form=“SRDGen”;
. . @If( . . Working_Status_2=“Pending - Sponsors/Doc Engineer Review” & DEApproval=“”;
. . . . . . “DocEngineer”;
. . . . Working_Status_2=“Pending - Sponsors/Doc Engineer Review” &
. . . . @If( NumofSS=@ToNumber(“1”) & SSApproval1=“”;
. . . . . . . . “Sponsors”;
. . . . . . . . “Test1”
. . . . );
. . . . Working_Status_2=“S/W Productionization Review” |
. . . . Working_Status_2=“Productionized Open - S/W Productionization Review” &
. . . . SoftSenApproval=“”;
. . . . . . “Software”;
. . . . . . “Test2”
. . );
. . @False
)
Change to:
@If( . . Form=“SRDGen”;
. . @If( . . Working_Status_2=“Pending - Sponsors/Doc Engineer Review” & DEApproval=“”;
. . . . . . “DocEngineer”;
. . . . Working_Status_2=“Pending - Sponsors/Doc Engineer Review”;
. . . . . . @If(. . NumofSS=@ToNumber(“1”) & SSApproval1=“”;
. . . . . . . . . . “Sponsors”;
. . . . . . . . . . “Test1”
. . . . . . );
. . . . Working_Status_2=“S/W Productionization Review” |
. . . . Working_Status_2=“Productionized Open - S/W Productionization Review” &
. . . . SoftSenApproval=“”;
. . . . . . “Software”;
. . . . . . “Test2”
. . );
. . @False
)