CRM Customer Function Not Working
Hi Guys, I am struggling with the below if statement which I though it would be easy.
For some reason when I test the if statement it keep giving the the same result 1.
If Prop1 = 1 Then It would be looking into the else if statement And if Prop2 = 2 Then if should do the else statement are return a 5 Assuming the get related records returns nothing.
What I am missing?
Prop1 = ifnull(zoho.crm.getRelatedRecords("Property_Owner_11", "Contacts", ContID),"1");
Prop2 = ifnull(zoho.crm.getRelatedRecords("Property_Owner_21", "Contacts", ContID),"2");
Prop = "4";
If(Prop1 != "1")
{
Prop = Prop1;
}
else If(Prop2 != "2")
{
Prop = Prop2;
}
Else
{
Prop = "5";
}