Log in

View Full Version : What is the correct way to write this conditional?


dutchbb
09-22-2007, 02:01 PM
Hello I'm hving trouble writing a conditional in vbulletin:

<if condition="$bbuserinfo['field18'] AND $bbuserinfo[usergroupid] = 5,6,7,13,18">

What's wrong and how should I write it? Basically the comma's are OR...

Analogpoint
09-22-2007, 02:49 PM
<if condition="$bbuserinfo['field18'] && is_member_of($bbuserinfo, 5, 6, 7, 13, 18)">

dutchbb
09-22-2007, 04:02 PM
Works like a charm, thanks a lot!

Analogpoint
09-22-2007, 04:29 PM
You're welcome.