The Arcive of vBulletin Modifications Site. |
|
Multiple Conditionals Details »»
|
|||||||||||||||||||||||||
Hi, I have been messing around moving some of the options around in the templates for 3.0.0 gamma, and I would like to know how I can use multiple conditionals. Do I nest them, or are they all contained in one conditional joined by AND or OR?
Code:
<if condition="$show['admincplink']"> <if condition="$show['modcplink']"> Show Something </if> </if> Code:
<if condition="$show['admincplink']" && condition="$show['modcplink']"> Show Something </if> Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
HTML Code:
<if condition="$show['admincplink'] && $show['modcplink'] || $this AND $that OR $something"> Show Something </if> (As well as your first example of using nesting).
|
|
#3
|
||||
|
||||
|
Also this forum isn't the correct one for asking questions. Please read the announcements in future. Moved
|
|
#4
|
|||
|
|||
|
Quote:
|
![]() |
|
|