deathemperor
03-03-2004, 06:05 AM
I displayed 4 custom fields in postbit and an image to define those 4 like: "Favourites". The conditions I used (thanks to vb3 greatest ^^) for those custom field are fine. But now I want to use once more condition for the "Favourites" images: If user have entered one of those for, the image would be displayed, and if I there is no field filled, that image should be hidden.
I've tried:
<if condition="$post['filed5'] or $post['filed6'] or $post['file7'] or $post['filed8']"><tr><img src="images/showthread/favorites-left.gif" width="143" height="26" border="0" alt="" class="inlineimg" /></tr>
</if>
but it doesn't work, the image doesn't appear no matter what. What should I replace the 'or' ? || ? and what if I want and.
I'm very interested in vb conditions, they are really helpful ^^.
thanks you in advance.
I've tried:
<if condition="$post['filed5'] or $post['filed6'] or $post['file7'] or $post['filed8']"><tr><img src="images/showthread/favorites-left.gif" width="143" height="26" border="0" alt="" class="inlineimg" /></tr>
</if>
but it doesn't work, the image doesn't appear no matter what. What should I replace the 'or' ? || ? and what if I want and.
I'm very interested in vb conditions, they are really helpful ^^.
thanks you in advance.