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 4465 Jun 26, 2005, 7:26 PM
Thread Re: [rascal] if statement help needed
rascal 4379 Jun 27, 2005, 5:14 AM
Thread Re: [rascal] if statement help needed
Andy 4380 Jun 27, 2005, 6:01 AM
Thread Re: [Andy] if statement help needed
rascal 4357 Jun 27, 2005, 6:51 AM
Thread Re: [rascal] if statement help needed
Andy 4360 Jun 27, 2005, 6:54 AM
Thread Re: [Andy] if statement help needed
rascal 4356 Jun 27, 2005, 7:44 AM
Thread Re: [rascal] if statement help needed
Andy 4387 Jun 27, 2005, 7:46 AM
Thread Re: [Andy] if statement help needed
rascal 4354 Jun 27, 2005, 8:15 AM
Thread Re: [rascal] if statement help needed
Andy 4375 Jun 27, 2005, 8:16 AM
Post Re: [Andy] if statement help needed
rascal 4347 Jun 27, 2005, 8:21 AM
Thread Re: [rascal] if statement help needed
Payooo 4342 Jun 27, 2005, 3:33 PM
Thread Re: [Payooo] if statement help needed
rascal 4342 Jun 27, 2005, 6:06 PM
Thread Re: [rascal] if statement help needed
Payooo 4335 Jun 27, 2005, 7:38 PM
Thread Re: [Payooo] if statement help needed
rascal 4327 Jun 28, 2005, 8:59 AM
Post Re: [rascal] if statement help needed
Payooo 4300 Jun 28, 2005, 3:01 PM