PDA

View Full Version : more then 1 ID on "vb:if condition="$bbuserinfo['userid']"


SuperDude
11-27-2011, 02:56 PM
Hi,
i tried this:

<vb:if condition="$bbuserinfo['userid'] != 1,2,3">

but it doesn't work

help?

DivisionByZero
11-27-2011, 03:15 PM
what vb version are you using? You'll have to use in_array to get a T or F result, but the conditional syntax is different between vb3 and 4

Lynne
11-27-2011, 03:54 PM
<vb:if condition="!in_array($bbuserinfo['userid'] , array(1,2,3))">

SuperDude
11-27-2011, 03:54 PM
im using VB 4.1.8

EDIT: THAANKS!! god bless you

yeppuda
06-07-2013, 07:11 PM
<vb:if condition="!in_array($bbuserinfo['userid'] , array(1,2,3))">
for vb3? please...

kh99
06-07-2013, 08:05 PM
That should work, just remove the vb: from the start of the tags names. (i.e. <if condition="...)