Gossamer Forum
Home : Products : Gossamer Links : Discussions :

If, Else and Endif

Quote Reply
If, Else and Endif
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!
Subject Author Views Date
Thread If, Else and Endif aquaman 2251 Jul 25, 2005, 2:40 AM
Thread Re: [aquaman] If, Else and Endif
Andy 2188 Jul 25, 2005, 3:06 AM
Thread Re: [Andy] If, Else and Endif
aquaman 2173 Jul 29, 2005, 2:49 AM
Thread Re: [aquaman] If, Else and Endif
aquaman 2165 Jul 29, 2005, 10:59 AM
Post Re: [aquaman] If, Else and Endif
Andy 2154 Jul 30, 2005, 1:53 AM