---
title: name
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nscondition/name
---

# name

The name of the condition.

## Declaration

```swift
var name: String? { get set }
```

## Discussion

Discussion You can use a name string to identify a condition object within your code. Cocoa also uses this name as part of any error descriptions involving the condition.
