---
title: isTrue()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsscriptwhosetest/istrue()
---

# isTrue()

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

## Declaration

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

## Return Value

Return Value true if the test represented by the receiver evaluates to true, otherwise false.

## See Also

### Related Documentation

- [Cocoa Scripting Guide](apple-archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html.md)
