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...
That should work, just remove the vb: from the start of the tags names. (i.e. <if condition="...)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.