Conditional

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

    Conditional

    How do I run a conditional if then statement for a value < 1 and > .25? I can only get the first or second part, but not together...
  • WhSox21
    Member
    • May 2004
    • 70
    • 3.0.3

    #2
    Code:
    if ($value < 1 AND $value > .25)
    {
    //blah
    }
    else
    {
    // bleh
    }
    PHP Tutorials - Mozilla Firefox :rolleyes:

    Comment

    • Colin F
      Senior Member
      • May 2004
      • 17689

      #3
      If you want to use template conditionals, use this:
      Code:
      <if condition="$value < 1 AND $value > 0.25">
      [I]your code[/I]
      </if>
      You can also add a <else /> if you need it.
      Best Regards
      Colin Frei

      Please don't contact me per PM.

      Comment

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