PDA

View Full Version : Trying to write an <If> statement


dotJoel
06-29-2008, 03:02 PM
Hi Guys,

Trying to find the right values to be able to write:

If member equals Group X & Forum equals ForumID X

Any help appreciated, trying to make a template specific change depending on Member Group and Forum.

Regards,

.Joel

veenuisthebest
06-29-2008, 06:13 PM
For member equals group:-

<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>

For forum equals group:-

<if condition="$foruminfo['forumid'] == X"></if>

dotJoel
06-29-2008, 06:25 PM
Hi, Thanks for that.

I take it i can just use && and join them in to one statement.

Regards,

.Joel

Boofo
06-29-2008, 06:38 PM
&& will give you a validation error. I would use AND.