PDA

View Full Version : Conditionals help?


GavoTrav
06-13-2011, 01:15 AM
Basically I was putting something into the postbit_legacy and I want to have it like


<if condition="$post['field24']">
<a href="$post[field24]"><img src="images/facebook.png"></a>
<a href="http://www.twitter.com/$post[field26]"><img src="images/twitter.png"></a>
<a href="http://youtube.com/user/$post[field25]"><img src="images/youtube.png"></a>
</if>

But I wanted all of the

$post['field24'] $post['field25'] $post['field26']

What would I put?

I've seen it somewhere I just couldn't find it when I need it >.<

GavoTrav
06-14-2011, 02:59 PM
I found out how with no help :o

<if condition="$post['field24'] || $post['field25'] || $post['field26']">

Incase anyone wonders the same thing.