HTML conditional <IF

Discussion in 'HTML & Website Design' started by maxtower, Mar 24, 2007.

  1. #1
    In my vbulletin forums there is some code that looks like this:

    <if condition="condition"> ... </IF>
    Code (markup):
    I looked around the internet for IF Html tags, but can't find any documentation. Can someone tell me what this is, and how I can use it? Is there an <ELSIF> ?

    Max
     
    maxtower, Mar 24, 2007 IP
  2. bdude

    bdude Peon

    Messages:
    124
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There's no <IF> in HTML as it's a display language, not a scripting language. You'd have to use Javascript and document.write
     
    bdude, Mar 24, 2007 IP
  3. maxtower

    maxtower Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    So this <IF> thing is working. How do I find out more about it? Is it standard in vbulletin?
     
    maxtower, Mar 24, 2007 IP
  4. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #4
    ajsa52, Mar 24, 2007 IP
  5. maxtower

    maxtower Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No, this isn't BBcode. Its in the template editor, where you can modify the layout of your bulletin board.
     
    maxtower, Mar 24, 2007 IP
  6. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #6
    ajsa52, Mar 25, 2007 IP