Announcement

Collapse
No announcement yet.

how do I write an if/else for language?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how do I write an if/else for language?

    I want to write an if/else statement for the language that the user has chosen.

    I came up with this but it doesn't seem to work:

    <if languageid="3">
    do something
    <else />
    </if>


    Do I even need the else?
    Danny
    My Site ---->www.montrealracing.com

  • #2
    Yes. You'll have to tell what else to show.

    Like...

    <if statement="x">
    blah, blah, blah
    <else />
    yeah, yeah, yeah
    </if>

    Chris
    "Anyone who conducts an argument by appealing to Authority
    is not using his intelligence, he is just using his memory."
    ~~~
    Leonardo da Vinci

    Comment


    • #3
      The vB help files explain all of this Basically all you're doing is tell it 'if' this, than (else) something else, and then ending the statement with a closing 'if'

      Comment


      • #4
        Can you confirm the correct use of the language line? Also if the condition isn't met I want nothing to happen. Do I still need else?
        Danny
        My Site ---->www.montrealracing.com

        Comment


        • #5
          Don't know the syntax for calling up another language ID.

          But to answer you other question: Leave after the <else /> blank with a &nbsp; if you don't want it to show anything.

          Chris
          "Anyone who conducts an argument by appealing to Authority
          is not using his intelligence, he is just using his memory."
          ~~~
          Leonardo da Vinci

          Comment


          • #6
            Originally posted by ChrisLM2001
            Don't know the syntax for calling up another language ID.

            But to answer you other question: Leave after the <else /> blank with a &nbsp; if you don't want it to show anything.

            Chris
            Thanks for the reply. I still need the correct statement to call language though.
            Danny
            My Site ---->www.montrealracing.com

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X