Hi All,
I’m trying to list portfolio items in groups of 3. When the total number of entries isn’t divisible by 3, then I want a dummy item to be inserted to fill out the rest. For example…
If 6 items…
<ul>
<li>Project 1</li>
<li>Project 2</li>
<li>Project 3</li>
<li>Project 4</li>
<li>Project 5</li>
<li>Project 6</li>
</ul>If 5 items…
<ul>
<li>Project 1</li>
<li>Project 2</li>
<li>Project 3</li>
<li>Project 4</li>
<li>Project 5</li>
<li>Dummy Item</li>
</ul>If 4 items…
<ul>
<li>Project 1</li>
<li>Project 2</li>
<li>Project 3</li>
<li>Project 4</li>
<li>Dummy Item</li>
<li>Dummy Item</li>
</ul>
I figured I could use conditional global variables, but I don’t know how to do operators within the condition. For example, is there a way to do “If #entries/3 and remainder is 0, then…”? Any help would be appreciated. Thanks.