Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • !(CONDITION) works!?

    After reading some posts here I was of the impression that negative conditions do not work.

    use $data if !(var<16000), clear

    works perfectly!


  • #2
    Code:
    !(var < 16000)
    means

    Code:
    var >= 16000
    which includes missing values!

    Comment


    • #3
      Yes, in my case I had multiple nested conditions and couldn't get my head around how to rewrite them in positive form. So using the negative was easier

      Comment

      Working...
      X