
07-13-2006, 10:15 PM
|
|
|
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by slappy
Yep. I was adding it while you were correcting my omission.
Thanks.
Is the use of the else / if considered better formatting?
Regards,
|
From the vB Manual
Quote:
vBulletin template conditionals do not natively support 'else if', but you can easily replicate its behavior by nesting conditionals as follows:
HTML Code:
<if condition="$my_variable == 1">
<p>My variable is equal to one.</p>
<else />
<if condition="$my_variable == 2">
<p>My variable is equal to two.</p>
<else />
<p>My variable is equal to neither one nor two.</p>
</if>
</if>
|
|