html view + "for each" + avoid "null"
Hi everyone,
I have the feeling what I'm about to ask is not so difficult, and that at least bits of this question have been asked many, many times before. However, I couldn't find any thread presenting it exactly in the way I see it - or couldn't piece the bits of information together properly!
- <%{
AuthInfo = Form [displayauth] sort by Name range from (stIndex + 1) to endIndex;
{%>
<%for each AuthRow in AuthInfo
{%>
<div><%=AuthRow.Name%> <%=AuthRow.Last_Name%></div>
- <div><%=AuthRow.Website%></div>
- ...
My HTML view above is supposed to display a list of all the personal profiles for which the "displayauth" condition is verified. Easy. But I also need it to check, for each record, whether items like "Last_Name" are not going to display a "null". As regards profiles with no "Website" information, I would like to prevent the div from being displayed altogether.
Question: where should I insert the "if" checks, and how to design them?
Thanks a lot in advance!
D_