![]() |
did i do this correctly?
i am trying to make a condition with an else existing in templates
here is my code: Code:
<tr> |
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.. :) |
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 |
<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> |
woopsies ^.^ thanks zac:D
|
All times are GMT. The time now is 02:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|