PDA

View Full Version : Need some conditional statement assistance


Markro
05-26-2006, 03:10 AM
I need some quick conditional statement assistance. basically i want to detect the user who just posted user id and if his userid is a specific one an icon will display under his username and only his username, also, it'll appear on all his posts.

I think the code is something like this


<if condition="[$post]userid == array ('1, 3, 5']);"><img src="image"></if>


i think its written poorly though heh :-\, can anyone help?

THX :D

Adrian Schneider
05-26-2006, 03:27 AM
Close. :) <if condition="in_array($post['userid'], array(1, 2, 3))">...</if>