basic "if" syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ctoz
    New Member
    • Jul 2007
    • 13

    basic "if" syntax

    To express
    "if m is greater than 1 but less than or equal to 5"
    is it
    Code:
    if (m > 1 && <=5)
    or does it have to be two statements
    Code:
    if (m > 1)  &&  if (m<= 0.5)
    thanks
  • rohitchawla
    New Member
    • Jul 2007
    • 85

    #2
    it should be
    [CODE=javascript]if(m>1 && m<=5)[/CODE]

    Comment

    Working...