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

# isTrue()

Returns a Boolean value that indicates whether the test represented by the receiver evaluates to true.

```
func isTrue() -> Bool
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the test represented by the receiver evaluates to <doc://com.apple.documentation/documentation/Swift/true>, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

  [Cocoa Scripting Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html#//apple_ref/doc/uid/TP40002164)



---

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)