The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
If condition with or
I got an if like:
Code: Code:
<vb:if condition="$channel['nodeid'] != 16"> <tr><td>Something</td></tr> </vb:if> Code: Code:
if $channel['nodeid'] != 16 || $channel['nodeid'] != 20 |
#2
|
|||
|
|||
<vb:if condition="!in_array($channel['nodeid'], array(16,20))">
|
#3
|
||||
|
||||
Your first condition will always be true, if thenodeid isn't 16. I believe this makes it so the second part is never checked.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|