If/else AND merge fields at the same time
Todays call for help please
I have seperate fields for Installation Postcode, Installation City, Billing Postcode and Billing City.
I need to merge the installation postcode and city and pull that into a different field, BUT if there is something in the Billing Postcode and City, it needs to merge and pull those details instead.
I've worked out how to merge the fields and I can pull either the postcode or the city across, but I can't for the life of me work out how to get it to do everything at once!
These are the variables
var BillingPC = this.getField("Master.ACCOUNT_BILLINGPOSTALCODE").valueAsString;
var BillingCity = this.getField("Master.ACCOUNT_BILLINGCITY").valueAsString;
var InstalPC = this.getField("installation post code").valueAsString;
var InstalCity = this.getField("installation city").valueAsString;
Can anyone show me how to do this. Thank you
