Gossamer Forum
Quote Reply
tricky else if statement
Hi Andy,
I'm using this code in detail.html.
At the moment it is possible that more messages are displayed at the same time.
But I don't want to have more than one message.
Is there a way (must be something with elseif!) to show only the first right message and not the others.

Code:
<%if Jump_Clicks > 500 and user_links_anzahl < 2%>
Message: Add a new link
<%endif%>

<%if user_reviews_anzahl < 3 and Jump_Clicks > 500%>
Message: Write a review
<%endif%>

<%if user_reviews_anzahl > 2%>
<%get_last_additions_for_user($user.Username)%>
<%if days_since_last_review > 365%>
Message: Write a review
<%endif%>
<%endif%>

<%if user_links_anzahl > 1%>
<%get_last_additions_for_user($user.Username)%>
<%if days_since_last_link > 365%>
Message: Add a new link
<%endif%>
<%endif%>

Thanks

Matthias
gpaed.de
Subject Author Views Date
Thread tricky else if statement Matthias70 3497 Aug 27, 2010, 8:30 AM
Thread Re: [Matthias70] tricky else if statement
Andy 3422 Aug 27, 2010, 8:33 AM
Thread Re: [Andy] tricky else if statement
Matthias70 3422 Aug 27, 2010, 8:37 AM
Thread Re: [Matthias70] tricky else if statement
Andy 3417 Aug 27, 2010, 8:41 AM
Thread Re: [Andy] tricky else if statement
Matthias70 3445 Aug 27, 2010, 9:17 AM
Post Re: [Matthias70] tricky else if statement
Andy 3396 Aug 27, 2010, 10:34 AM