How can i write the greater than condition in UGC Conditional statement

Viewed 204

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

4 Answers
Related