In my sample example I have a collection of members who are sorted by industry ( a text field) What I want to do is have a conditional header that is displayed when the industry group changes.
This is an outline of what I want to do.
<div id="MemberList">
<% control MemberList %>
<% if $lastindustry <> $Industry %>
<h2>$Industry</h2>
$lastindustry = $Industry
<% end_if %>
<p>$Title - $CompanyName</p>
<% end_control %>
</div>
How best to achieve this?