in reply to Re: printing values within a given range
in thread printing values within a given range

gt and le are string-wise comparisons. > and <= are numeric comparisons.
True statement, and a correct fix, but you should also point out that the OP is comparing the variable names as strings rather than their values. (There are single quotes around the vars....)

  • Comment on Re^2: printing values within a given range