Announcement

Collapse
No announcement yet.

how do I write an if/else for language?

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

  • DannyITR
    replied
    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.

    Leave a comment:


  • ChrisLM2001
    replied
    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

    Leave a comment:


  • DannyITR
    replied
    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?

    Leave a comment:


  • Bubble #5
    replied
    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'

    Leave a comment:


  • ChrisLM2001
    replied
    Yes. You'll have to tell what else to show.

    Like...

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

    Chris

    Leave a comment:


  • DannyITR
    started a topic how do I write an if/else for language?

    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?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X