Hi...
Please could someone have a quick look at these "if" statements and let me know what I am doing wrong.
what is happening is that if Type = Link the Add_Date field still shows up if it has a value.
Example:
<%if Type = 'Article'%>
<p><%if Add_Date%><i>Published: <%Add_Date%></i><br><%endif%>
</p>
<%endif%>
Example 2:
And here, Type is set to "Link" but the "ArticleDescription" is showing and not the "Description"
<%if Type = 'Article'%>
<%if ArticleDescription%><div class="description"><%ArticleDescription%></div><%else%>
<%if Description%><p class="description"><%Description%></p><%endif%>
<%endif%>
Many Thanks!
Please could someone have a quick look at these "if" statements and let me know what I am doing wrong.
what is happening is that if Type = Link the Add_Date field still shows up if it has a value.
Example:
<%if Type = 'Article'%>
<p><%if Add_Date%><i>Published: <%Add_Date%></i><br><%endif%>
</p>
<%endif%>
Example 2:
And here, Type is set to "Link" but the "ArticleDescription" is showing and not the "Description"
<%if Type = 'Article'%>
<%if ArticleDescription%><div class="description"><%ArticleDescription%></div><%else%>
<%if Description%><p class="description"><%Description%></p><%endif%>
<%endif%>
Many Thanks!