in reply to printing values within a given range

Oh ... I see, I get it now Blazar sorry. You been substitute gt for > and so on. I have already tried that though (and removed the ' ') but it's still not playing ball. Any other suggestions much appreciated.
  • Comment on Re: printing values within a given range

Replies are listed 'Best First'.
Re^2: printing values within a given range
by blazar (Canon) on May 03, 2005 at 14:52 UTC
    Well, as someone else noticed, you're comparing some fixed strings that have nothing to do with the $checkvalue, $value1 and $value2 variables. I hadn't even noticed for it's particularly byzantine. Using double quotes would have given you a wrong result. Using single quotes gives you a doubly (or better: multiply!) wrong result!!

    You have:

    if(('$checkvalue' gt '$value1') && ('$checkvalue' le '$value2'))
    Make that:
    if( $checkvalue > $value1 and $checkvalue <= $value2)
Re^2: printing values within a given range
by reasonablekeith (Deacon) on May 03, 2005 at 14:40 UTC
    You could try pasting in a bit of your data, just incase we're missing something important.