RPL looping
I have a situation where I have to evaluate a subscriber and the articles assigned to them, and I am looking for the simplest way to evaluate a number of data points for one record.
For example, the record looks like the following
First Name | Article001 | Article002 | Article003 |
John Smith | Y | | Y |
John Smith should see Article001 and Article003. These are individual .html files stored in the content library.
<#if Article001 == Y><#include "cms://contentlibrary/Article001.html">
<#if Article002 ==Y><#include "cms://contentlibrary/Article002.html">
<#if Article003 == Y><#include "cms://contentlibrary/Article003.html">
</#if>
Ideally, I'd like to insert these in a macro to test each value first and then loop through these instead of defining each article manually.