PDA

View Full Version : Using userid if condition.. help


kyokushin4life
06-08-2007, 12:35 AM
Hi there i'm trying to use an if condition statement for multiple users.

eg)

<if condition="$post['userid'] == 602">something happens</if>

I would like this statement to be used for multiple users, for example userid 602, 345, 123 etc..

How do I do this in a statement ratehr than using duplicates? thank you.

dyna88
06-08-2007, 12:56 AM
<if condition="in_array($bbuserinfo[userid], array(X,Y,Z))">

kyokushin4life
06-08-2007, 01:00 AM
cheers