Avatar

Level 2

Hey all,

 

I have an ACC email I need to create for Message Center, the flow looks like this:

API call comes into Message Center, had has a value for the amount of "vouchers" to display in 

 

  1. VOUCHER = 3  -- this means this particular email should eventually display 3 vouchers in the email
    1. vouchers is just a small block of html that display a image, and some text. its a small <table> structure.
    2. the amount of vouchers will never be known
  2. I need to display in the email, this voucher table structure 3 times

I have tried a few simple things so for, just to display the amount in the test, but no luck.

 

<%

for (var i = rtEvent.ctx.VOUCHER; ; i++) {
document.write(i);
}
%>

 

ANy help or documents on ACC Loops?