Announcement

Collapse
No announcement yet.

Conditional

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

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

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

    Comment


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

      Please don't contact me per PM.

      Comment

      Loading...
      Working...
      X