Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Trying to adapt Review Helpful

Quote Reply
Trying to adapt Review Helpful
Can you help me with this one?

In "Was This Review Helpful" I'm trying to achieve the following:

No votes = blank
1 vote = 1 person found this review helpful
2 or more votes = 2 people found this review helpful

Juggling around with this code but not having much success.

Code:
<%if Num eq 0%><%endif%>
<%if Num eq 1%><%Review_WasHelpful%> person found this review helpful.<%endif%>
<%if Num > 1%><%Review_WasHelpful%> people found this review helpful.<%endif%>
Quote Reply
Re: [MJB] Trying to adapt Review Helpful In reply to
Getting there. Was looking at the wrong tag. Blush

Code:
<%if Num%>
<%if Review_WasHelpful eq 1%>
<%Review_WasHelpful%> person <%else%><%Review_WasHelpful%> people<%endif%> found this review helpful.
<%endif%>

Just need to sort the 'no display for 0 votes' out now.

Smile
Quote Reply
Re: [MJB] Trying to adapt Review Helpful In reply to
Mission accomplished.

Code:
<%if Num%><%if Review_WasHelpful eq 0%><%else%>
<%if Review_WasHelpful eq 1%>
<%Review_WasHelpful%> person <%else%><%Review_WasHelpful%> people<%endif%> found this review helpful.
<%endif%>
<%endif%>

Cool