I am using ugc conditional statement in my code, the equals condition is working fine, but how can be used other conditional operator like ">" "<" and "Not Equals".
<%
HttpContext.Current.Items["CommentCount"] = 0;
%>
<ugc:Choose runat="server">
<ugc:When test="ugcItemStats.numberOfComments > CommentCount" runat="server">
HTML1
</ugc:When>
<ugc:Otherwise runat="server">
HTML2
</ugc:Otherwise>
</ugc:Choose>
What operator should be used, if numberofComments is greater than 0, I tried like this way and also tried "notequals" instead of ">" but its does't work.
Please suggest
Tridion ug:when will be work only with " equal " and "==" if you want to use other operator then you have to create the other customer control for this.
I have created and i hope it will be work with "==,>=",<=,>,<,!=" operator.
its working in my project.
implementaion in aspx page
if you face any problem please let me know.