The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
i am trying to make a condition with an else existing in templates
here is my code: Code:
<tr> <td class="vbmenu_option"><a href="journal.php?do=away">Turn Away <if condition="$journalinfo[away]==1">Off</else>On</if></a></td> </tr> ![]() |
#2
|
|||
|
|||
![]()
I believe you would have to do two if conditionals.. I haven't seen an else in a template, that I am aware of.. but I am by no means up to snuff on any of this..
btw, looking forward to the journal, AN-net.. ![]() |
#3
|
||||
|
||||
![]()
You can use else. To make it xhtml compliant, use < /else>
What is the value of $journalinfo[away]? [edit]why did I bother, it's much too early in the morning ![]() Thanks Zachery |
#4
|
||||
|
||||
![]()
<tr>
<td class="vbmenu_option"><a href="journal.php?do=away">Turn Away <if condition="$journalinfo[away]==1">Off<else />On</if></a></td> else is a single tag, so its <bleh /> not </bleh> << ending tag <if condition="$var"> $var is true <else /> $var is false </if> |
#5
|
||||
|
||||
![]()
woopsies ^.^ thanks zac
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|