<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSLogicalTest/init(notTestWith:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLogicalTest(im)initNotTestWithTest:"
  },
  "title" : "init(notTestWith:)"
}
-->

# init(notTestWith:)

Returns an `NSLogicalTest` object initialized to perform a `NOT` operation on the given `NSScriptWhoseTest` object.

```
init(notTestWith subTest: NSScriptWhoseTest)
```

## Parameters

`subTest`

The `NSScriptWhoseTest` object to invert.

## Return Value

An `NSLogicalTest` object initialized to perform a `NOT` operation on `subTest`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)