Hi,
Please keep in mind that my answer is based on the provided code (There might be better ways to achieve what you are trying to do if more information is known)
You can have 2 content classes
<ul>
<%con_items%>
</ul>
<li>
<a href="<%anc_item%>"><%hdl_title%></a>
<!IoRangeConditional>
<ul>
<%con_sub_items%>
</ul>
</!IoRangeConditional>
</li>