PDA

View Full Version : vBulletin If greater than statement


MatthewA
08-03-2011, 11:53 AM
I've been trying to do a greater than statement all day:


<vb:if condition="$show['reputation']"><div class="post_field"><dt>Reputation Points</dt><dd><vb:if condition="$post.reputation > 0">
<b><font color="green">{vb:raw post.reputation}</font></b><vb:else /><b><font color="red">{vb:raw post.reputation}</font></b></vb:if></dd></div></vb:if>


What exactly am I doing wrong?

kh99
08-03-2011, 12:07 PM
I think you want:

<vb:if condition="$post['reputation'] > 0">

MatthewA
08-03-2011, 12:25 PM
Thank you so much (y)