![]() |
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"> |
Try this:
Code:
<if condition="!in_array($bbuserinfo['usergroupid'], array(1, 3))"> |
Works perfect thank you very much.
|
Quote:
|
Going off your original syntax, I think it should be this way:
Code:
<if condition="$bbuserinfo['usergroupid'] != 1 || $bbuserinfo['usergroupid'] != 3"> |
All times are GMT. The time now is 02:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|