For loop Script in Html diffusion
Hello community,
I'm trying to do a loop in the html and concatenate fields that I want to retrieve in the mail with the increment value i of the for loop,
Here is the script I used but it didn't work,
<script> <% for(var i=0;i<5;i++) { %> </script>
<%= i %> - <%=context.targetData.AllWkf1.name_wkf %>
<script><%}%> </script>
What i want is to concatenate the value i with the AllWkf and loop it until I retrieve the values that I want,
For Example :
context.targetData.AllWkf1.name_wkf
context.targetData.AllWkf2.name_wkf
context.targetData.AllWkf3.name_wkf
context.targetData.AllWkf4.name_wkf
...
Could anyone help me with this ?