---
title: CLSBinaryItem
framework: classkit
role: symbol
role_heading: Class
path: classkit/clsbinaryitem
---

# CLSBinaryItem

Activity information that is true or false, pass or fail, yes or no.

## Declaration

```swift
class CLSBinaryItem
```

## Overview

Overview Use an activity item of this type to indicate a binary condition, such as whether a student passed a test or failed it. Set the valueType property to specify how the binary condition should be reported to a teacher.

## Topics

### Creating Binary Activity Items

- [init(identifier:title:type:)](classkit/clsbinaryitem/init(identifier:title:type:).md)
- [CLSBinaryValueType](classkit/clsbinaryvaluetype.md)

### Managing the Value

- [value](classkit/clsbinaryitem/value.md)
- [valueType](classkit/clsbinaryitem/valuetype.md)

## Relationships

### Inherits From

- [CLSActivityItem](classkit/clsactivityitem.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Activity items

- [Recording additional metrics about a completed task](classkit/recording-additional-metrics-about-a-completed-task.md)
- [CLSScoreItem](classkit/clsscoreitem.md)
- [CLSQuantityItem](classkit/clsquantityitem.md)
- [CLSActivityItem](classkit/clsactivityitem.md)
