Jump to content

Recommended Posts

Posted

Hello,

I have the below within range statement, which appears to evaluate to true, though it definitely isn't. Any ideas what might be causing this? As soon as I started typing this email out, I did realize that the high and low should have an extra 0 and 9 at the ends or each (9 numbers long, should be 10), but still, it should be false I feel.

Subroutine is called in the main routine. 

 

image.png.31501c68bb8be049c8e40b54f932fc91.png

  • MVP 2023
Posted

Don't worry Johnny, I often get this one confused. 

It is straightforward and I don't know why I do it, but I think it is the strange way it is shown in the element.  For my brain, I think I want to read A first in the line shown.  The way it's shown if you read it from the A perspective, it makes sense, as going backwards  to B means that A is >= than B.

cheers, Aus

Posted

I caught the fact that Johnny had a number mix-up, easy enough to do...

But, following up on Aus's comment;

I agree that it can be confusing, I think it should read " A<=B<=C ".

With B being the input number, so visually it make more sense, the input number is "in between" your High and Low range, so it's "within range"

Just my 2 cents..

JohnR

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.