Does PC-DMIS have a "Not Equal" logical expression?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does PC-DMIS have a "Not Equal" logical expression?

    I would like to check if a variable is not equal to an integer, but I can't figure out how to do it. I have tried IF/V1 != 1 and IF/V1 >< 1, but I keep getting an invalid number entered error. This seems like it should be really simple, but for the life of me, I'm stumped.

  • #2
    did you try <> instead of ><
    sigpic
    Originally posted by AndersI
    I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

    Comment


    • #3
      If/v1<>1?

      Comment


      • #4
        *face palm*

        Thank you.

        Comment


        • #5
          You can also try (you weren' too far !)
          IF/!V1==1
          .....
          END IF/

          from core manual :
          ! Logical Not: !<Expression>
          Returns the logical not of the expression.

          Comment


          • gtslate
            gtslate commented
            Editing a comment
            I was wondering how the ! worked! Thanks for this!

          • JEFMAN
            JEFMAN commented
            Editing a comment
            Just type "ASSIGN" in the edit window, then F9, and select the "!" function, it's described in...

        Related Topics

        Collapse

        Working...
        X