Here is a simplified example: I have some values set for multiple products in an email:
set @product1 = "Name of product one" set @product1link = "URL for product 1" set @product2 = "Name of product two" set @product2link = "URL for product 2" set @product3 = "Name of product three" set @product3link = "URL for product 3" set @product4 = "Name of product four" set @product4link = "URL for product 4"
The loop picks up each product:
%%[ set @myCount = 0 set @totalProducts = 4 ]%% %%[ FOR @myCount = 1 TO @totalProducts DO ]%% %%[ set @productTitle = Concat("@product",@myCount) ]%% <h1>%%=v(@productTitle)=%%</h1> %%[ NEXT ]%%
What I expected to get would be:
Name of product one Name of product two Name of product three Name of product four
The output I get is:
@product1 @product2 @product3 @product4
How can I set
@productTitle so that it will get the value set for each product?