The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to use "or" in a template
I want to use this statement but it's not working. Any ideas what i need to change to make it work ?
Code:
<if condition="$bbuserinfo['usergroupid'] != 1 || 3"> Code:
<if condition="$bbuserinfo['usergroupid'] != 1"> |
#2
|
||||
|
||||
Try this:
Code:
<if condition="!in_array($bbuserinfo['usergroupid'], array(1, 3))"> |
#3
|
|||
|
|||
Works perfect thank you very much.
|
#4
|
||||
|
||||
|
#5
|
|||
|
|||
Going off your original syntax, I think it should be this way:
Code:
<if condition="$bbuserinfo['usergroupid'] != 1 || $bbuserinfo['usergroupid'] != 3"> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|