PDA

View Full Version : If usergroup x,y,z show this otherwise show this...


Fender963
02-09-2006, 07:39 PM
Hey Guys I was wondering if you could write a little conditional for me. Basically

if (part of user group x,y,z)
{
Show this
}
elseif (part of usergroup a,b,c)
{
show this.
}

Thank you.

Kyle

Nordinho
02-09-2006, 08:10 PM
Hey Guys I was wondering if you could write a little conditional for me. Basically

if (part of user group x,y,z)
{
Show this
}
elseif (part of usergroup a,b,c)
{
show this.
}

Thank you.

Kyle

<if condition="in_array($bbuserinfo['usergroupid'], array(x,y,z))">
the condition
<else />
the other condition
</if>