Gossamer Forum
Home : Products : Gossamer Links : Discussions :

if statement help needed

Quote Reply
if statement help needed
Hi Everyone,


I have this code that works fine except when no links have <%story eq 'Yes'~%>
The Header shows: My Title: which I do not want.

I did try to correct this, but had no success.


<%if link_results_loop.length~%>
<h3>My Title:</h3>
<%if title_loop.length%>
<%~set formatted_title = Links::Utils::format_title($title_loop, separator => $category_separator, no_escape_separator => $no_escape_category_separator, include_home => 0, link_type => 1)%>
<p class="category"><%if highlight and query%><%Links::Tools::highlight($formatted_title, $query)%><%else%><%formatted_title%><%endif%></p>
<%~endif%>

<%loop link_results_loop~%>
<%if story eq 'Yes'~%>
<%include link.html%>
<%~endif%>
<%~endloop%>
<%~endif%>

Can I stop the Header from showing when no Links Available?


Thanks in Advance!!!
Subject Author Views Date
Thread if statement help needed rascal 3030 Jun 26, 2005, 7:26 PM
Thread Re: [rascal] if statement help needed
rascal 2970 Jun 27, 2005, 5:14 AM
Thread Re: [rascal] if statement help needed
Andy 2971 Jun 27, 2005, 6:01 AM
Thread Re: [Andy] if statement help needed
rascal 2948 Jun 27, 2005, 6:51 AM
Thread Re: [rascal] if statement help needed
Andy 2951 Jun 27, 2005, 6:54 AM
Thread Re: [Andy] if statement help needed
rascal 2947 Jun 27, 2005, 7:44 AM
Thread Re: [rascal] if statement help needed
Andy 2978 Jun 27, 2005, 7:46 AM
Thread Re: [Andy] if statement help needed
rascal 2945 Jun 27, 2005, 8:15 AM
Thread Re: [rascal] if statement help needed
Andy 2965 Jun 27, 2005, 8:16 AM
Post Re: [Andy] if statement help needed
rascal 2938 Jun 27, 2005, 8:21 AM
Thread Re: [rascal] if statement help needed
Payooo 2933 Jun 27, 2005, 3:33 PM
Thread Re: [Payooo] if statement help needed
rascal 2933 Jun 27, 2005, 6:06 PM
Thread Re: [rascal] if statement help needed
Payooo 2926 Jun 27, 2005, 7:38 PM
Thread Re: [Payooo] if statement help needed
rascal 2918 Jun 28, 2005, 8:59 AM
Post Re: [rascal] if statement help needed
Payooo 2891 Jun 28, 2005, 3:01 PM