---
title: NSCompoundPredicate.LogicalType
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/nscompoundpredicate/logicaltype
---

# NSCompoundPredicate.LogicalType

Constants that describe the possible types of a compound predicate.

## Declaration

```swift
enum LogicalType
```

## Topics

### Constants

- [NSCompoundPredicate.LogicalType.not](foundation/nscompoundpredicate/logicaltype/not.md)
- [NSCompoundPredicate.LogicalType.and](foundation/nscompoundpredicate/logicaltype/and.md)
- [NSCompoundPredicate.LogicalType.or](foundation/nscompoundpredicate/logicaltype/or.md)

### Initializers

- [init(rawValue:)](foundation/nscompoundpredicate/logicaltype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting Information About a Compound Predicate

- [compoundPredicateType](foundation/nscompoundpredicate/compoundpredicatetype.md)
- [subpredicates](foundation/nscompoundpredicate/subpredicates.md)
