hi - can anyone suggest how to simplify the following statement? It seems a bit silly to repeat the loop code again, but I don't know how to wrap them into one...
<%loop links_loop%>
features[<%ID%>] = '<%if Description%><%Description%><%endif%>' ;
<%endloop%>
<%endif%>
<%if link_results_loop%>
<%loop link_results_loop%>
features[<%ID%>] = '<%if Description%><%Description%><%endif%>' ;
<%endloop%>
<%endif%>
thanks
r
Code:
<%if links_loop%> <%loop links_loop%>
features[<%ID%>] = '<%if Description%><%Description%><%endif%>' ;
<%endloop%>
<%endif%>
<%if link_results_loop%>
<%loop link_results_loop%>
features[<%ID%>] = '<%if Description%><%Description%><%endif%>' ;
<%endloop%>
<%endif%>
thanks
r