Avatar

Level 10

Hi Don,

I can't do up an example, but the approach would be test that first field is not null and then set the value of the variable. Then test second field and if not null ADD it to the variable.

Something LIKE this

var vCC = "";

if (textfield1.rawValue !== null) {

vCC = textfield1.rawValue + "; ";

}

if (textfield2.rawValue !== null) {

vCC = vCC +textfield2.rawValue;

}

Then use the vCC variable in the same place in the email script as the example.

Niall