The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
What is the syntax like for the template conditional if i want more than 2 cases in an IF condition ?
Eg. Here's the code for 2 cases. <if condition="myconditionhere"> My condition is met ! <else /> My condition is NOT met ! </if> How can I change it such that I have another condition ? say: <if condition="myconditionhere"> My condition is met ! <else if condition="my2ndcondition here"> My 2nd condition is met ! <else /> All conditions NOT met ! </if> Doesn't seem to work, what do I need to change to make it work ? ![]() |
#2
|
|||
|
|||
![]()
no elseif. At least not that I've been able to get to work.
I think you need something like <if condition="1"> <if condition="2"> 1 and 2 true <else /> 1 true 2 false </if> <else /> <if condition="2"> 1 false 2 true </else> all false </if> </if> |
#3
|
||||
|
||||
![]()
I got it to work already but thanks nonetheless
![]() For future reference: Code:
<if condition="myconditionhere"> My condition is met ! <else /><if condition="my2ndcondition here"> My 2nd condition is met ! <else /> All conditions NOT met ! </if></if> |
#4
|
||||
|
||||
![]()
this is just very simple to figure out, just like you code PHP
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|