2 Conditional criteria?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • okc
    Senior Member
    • Oct 2004
    • 235

    2 Conditional criteria?

    I want to have an if else string with 3 criteria instead of 2 - could you tell me how to modify the following or another method?

    <if condition="$value > 1"><span style="color: green">[value]<img class="inlineimg" src="http://image.gif><else if condition="$value > .25 and $value <1"><span style="color: green">[value]<img class="inlineimg" src=" <else /><span style="color: black">[value]<img class="inlineimg" src="
    </if>

    Think there's some probs in the code - -

    thx -
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Try the following:

    Code:
    <if condition="$value > 1">
    <span style="color: green;">[$value]<img class="inlineimg" src="http://image.gif" />
    <else />
    <if condition="$value > .25 AND $value < 1">
    <span style="color:green;">[$value]<img class="inlineimg" src="" />
    <else />
    <span style="color: black;">[$value]<img class="inlineimg" src="" />
    </if>
    </if>
    Be advised that your HTML code isn't too great either...
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • okc
      Senior Member
      • Oct 2004
      • 235

      #3
      Thx alot - but only seems to work if I take out the middle "else" string - is there another way to go about it?

      Comment

      • okc
        Senior Member
        • Oct 2004
        • 235

        #4
        It worked! I was missing an extra closing </if> thx alot!!

        Comment

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