Im trying to use nested if statement, but it fails to work:
inside my textbox:
=Max(IIF(Fields.RequestContactCodeDescription = "Broker",
IIF(Fields.HomePhoneNo = "", IIF(Fields.BusinessPhoneNo = "", IIF(Fields.CellNo = "", "No Contact Num", Fields.CellNo), Fields.BusinessPhoneNo), Fields.HomePhoneNo), ""))
equivalent pseudo if statement:
If(Fields.RequestContactCodeDescription == "Broker"){
if(Fields.HomePhoneNo == ""){
if(Fields.CellNo == ""){
[...]
}else{
//Show CellNo
}
}else{
//Show HomePhoneNo
}
}else{
//show nothing
}
What I want it to do:
Find the entries that has 'Broker' as the code Description. Then show his Home phone number, if he doesnt have that then show his Cell number, if he doesnt have that then show his Business number