The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello, i was wondering if there is a way to use an "else if" statement in templates?
I know that i can use: <if condition="$number > 0">bla bla...<else />nope</if> But is there a way to use elseif? Thanks in Advance! |
|
#2
|
|||
|
|||
|
You can nest if-else template conditionals:
Code:
<if condition="$number > 2"> blah_2 <else /> <if condition="$number > 1"> blah_1 <else /> <if condition="$number > 0"> blah_0 <else /> nope </if> </if> </if> |
|
#3
|
|||
|
|||
|
ok... it's a bit confusing but i guess that will do..
i think the developers should use <else if /> in the next version of vB. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|