---
title: "value(for:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsincrementalstorenode/value(for:)"
---

# value(for:)

Returns the value for the given property.

## Declaration

```swift
func value(for prop: NSPropertyDescription) -> Any?
```

## Parameters

- `prop`: A property description for one of the properties in the receiver.

## Return Value

Return Value The value for the property specified by prop. May return an instance of NSNull for to-one relationships.

## Discussion

Discussion If a relationship is nil, you should create a new value by invoking newValueForRelationship:forObjectWithID:withContext:error: on the NSPersistentStore object.

## See Also

### Managing Node Data

- [objectID](coredata/nsincrementalstorenode/objectid.md)
- [update(withValues:version:)](coredata/nsincrementalstorenode/update(withvalues:version:).md)
- [version](coredata/nsincrementalstorenode/version.md)
