Results 1 to 7 of 7

Thread: Greater than Less Than comparison not working

Hybrid View

  1. #1
    Join Date
    Oct 2000
    Location
    Willis Wharf, VA
    Posts
    1,769

    Default

    I haven't tested all the different possibilities, but if you want to have two tests I think your original tests work if you put the variable name in (), like the example below. Not sure why yet.


    &ZZeroPDif = -0.003


    IF (&ZZeroPDif) < -0.002 Then MSGBOX (WARNING! Z ZEROING ACCURACY QUESTIONABLE!, OKONLY, WARNING!)

  2. #2
    Join Date
    Oct 2000
    Location
    Willis Wharf, VA
    Posts
    1,769

    Default

    I think I figured it out. It appears that it's parsing the trailing "if" in your variable name as a second IF statement. Changing your variable name from "&ZZeroPDif" to "&ZZeroPDf" or "&ZZeroPDiff" or something that doesn't have an "if" at the end of the name seems to work in my tests.

  3. #3
    Join Date
    Jan 2019
    Location
    Greenville, SC
    Posts
    4

    Default

    OHHHH!!! Cool. Thank you. I'll test that tonight

  4. #4
    Join Date
    Jan 2019
    Location
    Greenville, SC
    Posts
    4

    Default

    OHHHH!!! Cool. Thank you. I'll test that tonight

  5. #5
    Join Date
    Jan 2019
    Location
    Greenville, SC
    Posts
    4

    Default

    That fixed it. Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •