SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Newbie] Html Else?

    Ok well im new to using IF's in HTML.

    I know that:
    HTML Code:
    <if condition="$test == on">
    </if>
    and

    HTML Code:
    <if condition="$test == on">
    <else>
    </if>
    works but what if i want an else if?

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    HTML doesn't have if/else statements.

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess vBulletin added its own? Well then my question is does vBulletin have a elseif statement for its templates?

  4. #4
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then it wasn't html.

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    HTML ifs

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

  6. #6
    SitePoint Addict SirAdrian's Avatar
    Join Date
    Jul 2005
    Location
    Kelowna, BC
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  7. #7
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well it would be

    HTML Code:
    <if condition>
    </else>
          <if condition>
          </if>
    </if>
    I requested that they add a elseif function

  8. #8
    SitePoint Addict
    Join Date
    May 2006
    Posts
    399
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not html for sure. Perhaps its some kind of script statement?

  9. #9
    doing my best to help c2uk's Avatar
    Join Date
    May 2005
    Location
    Cardiff
    Posts
    1,832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  10. #10
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol I am an active member at VBulletin.org, I just didnt know that the tags were created by VB.

    Thanks for the help.

  11. #11
    doing my best to help c2uk's Avatar
    Join Date
    May 2005
    Location
    Cardiff
    Posts
    1,832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •