---
title: CFComparisonResult
framework: corefoundation
role: symbol
role_heading: Enumeration
path: corefoundation/cfcomparisonresult
---

# CFComparisonResult

Constants returned by comparison functions, indicating whether a value is equal to, less than, or greater than another value.

## Declaration

```swift
enum CFComparisonResult
```

## Topics

### Constants

- [CFComparisonResult.compareLessThan](corefoundation/cfcomparisonresult/comparelessthan.md)
- [CFComparisonResult.compareEqualTo](corefoundation/cfcomparisonresult/compareequalto.md)
- [CFComparisonResult.compareGreaterThan](corefoundation/cfcomparisonresult/comparegreaterthan.md)

### Initializers

- [init(rawValue:)](corefoundation/cfcomparisonresult/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

### Constants

- [Value Not Found](corefoundation/value-not-found.md)
- [Current Framework Version Number](corefoundation/current-framework-version-number.md)
- [Framework Version Numbers](corefoundation/framework-version-numbers.md)
