Ok well im new to using IF's in HTML.
I know that:
andHTML Code:<if condition="$test == on"> </if>
works but what if i want an else if?HTML Code:<if condition="$test == on"> <else> </if>
| SitePoint Sponsor |

Ok well im new to using IF's in HTML.
I know that:
andHTML Code:<if condition="$test == on"> </if>
works but what if i want an else if?HTML Code:<if condition="$test == on"> <else> </if>

HTML doesn't have if/else statements.![]()
John Conde | Facebook | Twitter
Brainyminds Merchant Account Services I Love Code eBook Giant
Authorize.Net: AIM API | ARB API | CIM API Get the FREE code!
Merchant Accounts 101 | Ecommerce 101

I guess vBulletin added its own? Well then my question is does vBulletin have a elseif statement for its templates?
Then it wasn't html.


Are you referring to the conditional if comments used to show IE CSS?
http://www.quirksmode.org/css/condcom.htmlHTML Code:<!--[if IE]> <style> div.logo { margin-left: 10px; } </style> <![endif]-->
Last edited by Mittineague; Jun 2, 2006 at 19:49.


If you are referring to vBulletin's templates, the correct usage of else is "<else />" (which goes between the <if> and the </if>).
Adrian Schneider - Web Developer

well it would be
I requested that they add a elseif functionHTML Code:<if condition> </else> <if condition> </if> </if>


not html for sure. Perhaps its some kind of script statement?





This is clearly some template tags and if this has to do with vbulletin, why don't you post in their forums? They have excellent support forums on their own site.
Dan G
Marketing Strategist & Consultant

lol I am an active member at VBulletin.org, I just didnt know that the tags were created by VB.
Thanks for the help.





then all is well.
Broadly speaking, html is the stuff you can see when you open the source code of your website in the browser of your choice. If you can't see it, it must be something else (a very broad and simple definition, also keep in mind you can also see Javascript and CSS).
Dan G
Marketing Strategist & Consultant
Bookmarks