---
title: "init(notTestWith:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nslogicaltest/init(nottestwith:)"
---

# init(notTestWith:)

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

## Declaration

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

## Parameters

- `subTest`: The NSScriptWhoseTest object to invert.

## Return Value

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

## See Also

### Initializing a logical test

- [init(andTestWith:)](foundation/nslogicaltest/init(andtestwith:).md)
- [init(orTestWith:)](foundation/nslogicaltest/init(ortestwith:).md)
