I'm working with a script that sends multiple emails with multiple attachments and I encountered a weird behaviour on ConCat.
Code: Select all
Let>RecsNumEmails=0
Let>RecsNumEmails=RecsNumEmails+1
Let>RecToEmail_%RecsNumEmails%[email protected]
Let>RecMailAttachments_%RecsNumEmails%={""}
// Hardcoded email number 1
ConCat>RecMailAttachments_1,somefile.pdf;
// Using the email number counter to ConCat attachments
Concat>RecMailAttachments_%RecsNumEmails%,someotherfile.pdf;
Code: Select all
0: RECMAILATTACHMENTS_1=somefile.pdf;
0: ECMAILATTACHMENTS_%RECSNUMEMAILS=somefile.pdf;someotherfile.pdf;
MS "eats" the first letter and the last % of that variable name and stores the ConCat result.
Am I doing something wrong or is this definitely a problem?
Thank you for your time.